0

help playing = input("Do you want to play? ")

if playing != "yes":
quit()
#when i run it says name yes is not defined
bad_coder
  • 11,289
  • 20
  • 44
  • 72
S4nt4g017
  • 11
  • 1
  • 2
    It's 2021, you don't wan't to expose yourself to Python 2. The currently recommended and supported version of the language is Python 3. – tripleee Nov 22 '21 at 11:12
  • @S4nt4g017 Out of interest - how did you end up with Python 2? Do you use the new macOS with only it installed out of the box? Perhaps PyCharm can warn in such cases and suggest installing Python 3. – Pavel Karateev Nov 22 '21 at 16:28

0 Answers0