Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Step One: A basic user input, with an IF and ELSE
- '''name=input("Hello What is your name?")
- print("Hello " + name + ".")
- answer=input("Is Cherry Pepsi the best drink around?")
- if answer=="yes":
- print("Your Mom really did raise you well Bucco!")
- else:
- print ("Look Here Bucco you got some real issues.")'''
- #Step Two: Importing information to a list, but we will need to troubleshoot the bugs first
- responses = {}
- drinks = {}
- poll = True
- while poll:
- name = input("What is your name? ")
- drink = input("What is your drink of choice? ")
- response = input("How many drinks? ")
- responses[name] = response
- drinks[name] = drink
- repeatAgain = input("Would you like to let another person respond? (yes/no) ")
- if repeatAgain == 'no':
- poll = False
- print("---Your Results---")
- for name, response in responses.items():
- for name, drink in drinks.items():
- print(name + " hearts " + drink + " and would like to slam " + response + ".")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement