Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- print("First, tell me what your options are.")
- option1 = input("Option 1: ")
- option2 = input("Ok. Now tell me the other option: ")
- option1a = input("nGood. Now tell me a reason why '{}' is a good choice: ".format(option1))
- option1b = input("Ok. Now tell me another reason why '{}' is a good choice: ".format(option1))
- option1c = input("Ok. Now tell me another reason why '{}' is a good choice: ".format(option1))
- option2a = input("nThats all for '{}'. Now tell me why '{}' is a good choice: ".format(option1, option2))
- option2b = input("Now tell me another reason why '{}' is a good choice: ".format(option2))
- option2c = input("Now tell me another reason why '{}' is a good choice: ".format(option2))
- option1aw = int(input("nNow let's evaluate the options. Regarding '{}', "
- "from 1 to 5, tell me how important is '{}'? ".format(option1, option1a)))
- option1bw = int(input("Still regarding '{}', from 1 to 5, tell me how important is '{}'? ".format(option1, option1b)))
- option1cw = int(input("How about '{}', from 1 to 5, tell me how important it is: ".format(option1c)))
- option2aw = int(input("nNow let's evaluate the rest of the options. Regarding '{}',"
- " from 1 to 5, tell me how important is '{}'? ".format(option2, option2a)))
- option2bw = int(input("Still regarding '{}', from 1 to 5, tell me how important is '{}'? ".format(option2, option2b)))
- option2cw = int(input("How about '{}', from 1 to 5, tell me how important it is: ".format(option2c)))
- prompt = input("nWe'll calculate now. Click enter when you are ready to see the results. > ")
- option1result = option1aw + option1bw + option1cw
- option2result = option2aw + option2bw + option2cw
- options = [option1, option2]
- def coinflip():
- print("Your best choice is:")
- print(options[random.randint(0, len(options)-1)])
- if option1result > option2result:
- print("n'{}' is your best choice based on the reasons you gave me. ".format(option1))
- elif option1result == option2result:
- print("nHonestly, both are good options. Do you want to flip a coin? Press enter. ")
- input()
- coinflip()
- else:
- print("n'{}' is your best choice based on the reasons you gave me. ".format(option2))
- quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement