Jan-14-2018, 09:21 PM
So i've been trying to figure out what is wrong here but i think that i dont have enough experience in python yet.
Can anyone point out my mistake here?
Can anyone point out my mistake here?
def main(): choice = input("Pick one: 1)Rock 2)Paper 3)Scissors | Answer: ") if (choice == "1"): print (">You chose rock!<") if (choice == "2"): print (">You chose paper!<") if (choice == "3"): print (">You chose scissors!<") answer () def mid(): import time time.sleep(2) import random botc = random.randint(1,3) def answer(): if (botc == "1" and choice =="1"): print("Picked Rock!Tie!") if (botc == "2" and choice == "2"): print ("Picked Paper!Tie!") if (botc == "3" and choice == "3"): print ("Picked scissors!Tie!") if (botc == "1" and choice == "2"): print ("Picked rock!You win!") if (botc == "1" and choice == "3"): print ("Picked rock!You lost!") if (botc == "2" and choice == "1"): print ("Picked paper!You lose!") if (botc == "2" and choice == "3"): print ("Picked paper!You win!") if (botc == "3" and choice == "1"): print ("Picked scissors!You win!") if (botc == "3" and choice == "2" ): print ("Picked scissors!You win!") mid() main()Thanks