Trying to get this code to work. But I keep getting an error for the break. It's a mad lib and it needs to quit when the user input 'quit 0'. Help or hint would be great. Thank you.
user_input = input('Please enter a number and word:')
while True:
m = user_input. Split()[0]
n = int(user_input. Split()[1])
if m. Lower() == "quit":
break
else:
print("Eating " + str(n) + " " + m + " a day keeps the doctor away. ")
user_input = input()