Skip to content Skip to sidebar Skip to footer

Why Do I Get An Error "name 'play' Is Not Defined" When I Think It Is?

Full error: line 10, in colour = play() NameError: name 'play' is not defined I can't seem to find a reason for this issue anywhere on here. I am trying to ass

Solution 1:

You need to define the name before it is first used. In your case, moving the definition of play to before the while loop will solve the issue.


Post a Comment for "Why Do I Get An Error "name 'play' Is Not Defined" When I Think It Is?"