Home > Software design >  Can't run python program in command prompt
Can't run python program in command prompt

Time:01-05

I'm trying to run the basic program in the command prompt. Code is basic: print("hello"), but when I try to input python ex_02.py in command prompt it always shows Nie mo. I use python 3.10.0. Picture of what is happening in command prompt: https://imgur.com/a/D3Argtk.

CodePudding user response:

Try to use the keyword 'py' instead of 'python'. In your case you should write in your terminal

py ex_02.py
  •  Tags:  
  • Related