[Solved] Why is it so difficult to do a hello world in python? [closed]


First of all, I am assuming your code is

print("Hello World!")
input("Press any key to close")

and not

print("Hello World!") input("Press any key to close")

To run a python file, all I have to do is py file.py and it works fine. I have also seen people do python file.py on windows, and python3 file.py is usually used on linux. I am not sure what you will have to use, but I think you should try py file.py from the terminal. Also, you can open the file in the default IDLE Python installs (File > Open), and run in that (Run > Run Module)

Also, if that doesn’t work, you can take a quick read at this website I found

Also,
Make sure your file isn’t itself called python.py

2

solved Why is it so difficult to do a hello world in python? [closed]