Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. apples = 0
  2.  
  3. while apples < 100:
  4. print("You have", apples, "apples, and you need 100 to make an apple pie.")
  5. moreApples = int(input("How many apples would you like? "))
  6. apples += moreApples
  7. if apples < 100:
  8. print("Still not enough, you need 100 apples.")
  9. else:
  10. print("Great! You have", apples, "apples!")
  11.  
  12. print("Time to make some pies!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement