Rock-paper-scissors: Difference between revisions

Content deleted Content added
Line 3,300: Line 3,300:
elif rules[human] == computer: # if what beats the human's choice is the computer's choice...
elif rules[human] == computer: # if what beats the human's choice is the computer's choice...
print('the computer beat you... :(')
print('the computer beat you... :(')
else: print("it's a tie!")
else: print('it's a tie!')


else: print("that's not a valid choice")</lang>
else: print('that's not a valid choice')</lang>


Output, where player always chooses Rock:
Output, where player always chooses Rock: