on-internet
← Community

Python rock, paper, scissors game

Stack Overflow ·

I am using Python, and I am trying to write a simple program that simulates a rock, paper, scissors game. Everything works except for when I enter an invalid response (something other than rock, paper, or scissors) when I get this error: Traceback (most recent call last): File "C:/Users/home/Desktop/BAGARDNER/Python/rock_pape_scissors.py", line 88, in <module> main() File "C:/Users/home/Desktop/BAGARDNER/Python/rock_pape_scissors.py", line 14, in main number = user_guess() File "C:/Users/home/Desktop/BAGARDNER/Python/rock_pape_scissors.py", line 48, in user_guess return number UnboundLocalErro

Comments

Sign in or sign up to comment and upvote.

No comments yet.