Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. D=False
  2.  
  3. while D==False:
  4.  
  5. input=raw_input("please type 1 for 10p, 2 for 20p, 3 for 50p, 4 for 1 pound")
  6.  
  7. while input not in ['1', '2', '3', '4']:
  8.  
  9. print "That is not a correct coin value"
  10. input = raw_input("input: ")
  11. else:
  12. if input=="1":
  13. m=m+10
  14. if input=="2":
  15. m=m+20
  16. if input=="3":
  17. m=m+50
  18. if input=="4":
  19. m=m+100
  20.  
  21. print("your current credit in pennys is:")
  22. print(m)
  23.  
  24. D2=raw_input("are you done")
  25. if D2=="yes" or "Yes":
  26. D=True
  27. else:
  28. D=False
  29.  
  30. if D2=="yes" or "Yes":
  31.  
  32. if (D2=="yes") or "Yes":
  33.  
  34. if D2 == "yes" or "Yes":
  35.  
  36. if D2.lower() == "yes":
  37.  
  38. if D2 in ["yes", "Yes"]:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement