Relative Content

Tag Archive for pythonnameerror

Python: Cannot use CircUp in command prompt due to NameError (Windows)

I’m very new to Python and I am trying to install CircUp. I installed it using pip (following the directions here: https://learn.adafruit.com/keep-your-circuitpython-libraries-on-devices-up-to-date-with-circup/install-circup). But when I try to run a CircUp command in the command prompt, I get the error: NameError: name 'circup' is not defined.

How to make a subprogram return to the main program

Im creating a rock paper scissors game which consists of a subprogram containing the single player game, which is stored on a different file and imported to the main program which runs it. In the single player game the player has the option of returning to the main menu which is part of the runner file however i cant work out how to allow the player to do this. Any suggestions?