Home > Software design >  Why can I not run this very simple command
Why can I not run this very simple command

Time:08-20

enter image description herePyCharm is the best but other than that can you tell me what's going on here?

CodePudding user response:

you are running python2 and i think want python3.

in python2 input evaluates the string you are giving (in python 3 that would be eval(input(...))). and as hass is not defined you are getting an error.

suggestion: re-configure the interpreter for your project in PyCharm and use python 3.

CodePudding user response:

You should use python3 interpreter

CodePudding user response:

Why are you using Python 2.7. Please download the latest interpreter version 3.10.6 Pycharm is pretty good if you know how to use it:)

  • Related