Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input("Please enter a word and a number\n")
- while True:
- if text.split(' ')[0]=='quit':
- break
- text = text.split(" ")
- word = text[0]
- num = text[1]
- print(f'Eating {num} {word} a day keeps the doctor away.')
- text = input("Please enter a word and a number\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement