Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- coffee = 3
- while True:
- coin = int(input("insert coin:"))
- if coin == 300:
- print("here's coffee")
- coffee = coffee - 1
- print("coffee in %s" % coffee)
- elif coin > 300:
- print("here's coffee")
- print("change is %s coin" % (coin - 300))
- coffee = coffee - 1
- print("coffee in %s" % coffee)
- elif coin < 300:
- print("coin is not enough")
- if coffee == 0:
- print("coffee is end")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement