Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. #Step One: A basic user input, with an IF and ELSE
  2.  
  3. '''name=input("Hello What is your name?")
  4. print("Hello " + name + ".")
  5.  
  6. answer=input("Is Cherry Pepsi the best drink around?")
  7.  
  8. if answer=="yes":
  9. print("Your Mom really did raise you well Bucco!")
  10. else:
  11. print ("Look Here Bucco you got some real issues.")'''
  12.  
  13. #Step Two: Importing information to a list, but we will need to troubleshoot the bugs first
  14.  
  15. responses = {}
  16. drinks = {}
  17.  
  18. poll = True
  19.  
  20. while poll:
  21. name = input("What is your name? ")
  22. drink = input("What is your drink of choice? ")
  23. response = input("How many drinks? ")
  24.  
  25.  
  26. responses[name] = response
  27. drinks[name] = drink
  28.  
  29. repeatAgain = input("Would you like to let another person respond? (yes/no) ")
  30. if repeatAgain == 'no':
  31. poll = False
  32.  
  33. print("---Your Results---")
  34. for name, response in responses.items():
  35. for name, drink in drinks.items():
  36. print(name + " hearts " + drink + " and would like to slam " + response + ".")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement