I need help with my python program I am making a rock paper - TopicsExpress



          

I need help with my python program I am making a rock paper scissors game and I keep getting an error on lines 15 and 17 it says Indentionerror: unindent does not match any outer indentation level prior to this error line 13 had the same thing so I changed the variable and it was fixed. Now I dont see whats wrong with the others. Here is the code import random playagain = yes while playagain == yes : print hello, welcome to rock paper scissors choice = int(raw_input(What do you choose? |[1]: Rock| |[2]: Paper| |[3]:Scissors| )) number = random.randint(0,3) if number == 1: com = rock if number == 2: com = paper if number == 3: com = scissors if choice == 1: user = rock #if choice == 2: #user = paper #if choice == 3: #user = scissors print the computer chose + com print you chose + user if number > choice: print you lose if number < choice: print you win if number == 1 and choice == 3: print you win if number == 3 and choice == 1: print you lose prompt = raw_input(do you want to play again?) if prompt == yes: playagain = yes if prompt == no: playagain = no Ps: I turned those lines into comments so that they wouldnt be interpreted
Posted on: Sat, 11 Oct 2014 03:52:36 +0000

Trending Topics



Recently Viewed Topics




© 2015