Advertisement
biswasrohit20

apple

Mar 28th, 2021
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. text = input("Please enter a word and a number\n")
  2.  
  3. while True:
  4. if text.split(' ')[0]=='quit':
  5. break
  6. text = text.split(" ")
  7. word = text[0]
  8. num = text[1]
  9. print(f'Eating {num} {word} a day keeps the doctor away.')
  10. text = input("Please enter a word and a number\n")
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement