I'm new to programming and decided to give CS50P a try. After downloading Visual Studio Code and installing Python, I wrote a simple program: `print("hello","world")`. However, when I tried running it in the terminal with `python hello.py`, I got an error saying 'zsh: command not found: hello.py'. I then tried `python3 hello.py`, and while it didn't throw an error, it didn't display anything either—just a spinning blue circle to the left. I even downloaded Python from the official website, but it didn't resolve the issue. Can anyone help figure out what might be going wrong?
2 Answers
It could also be a PATH issue with your Python installation. Make sure you're using `python3` for your commands since it looks like your setup may be defaulting to Python 2. Try running `python3 hello.py` again, but double-check that you're in the right folder with your script.
It sounds like your terminal might not be in the right directory where your Python file is saved. You should navigate to that directory first before running the command. Use the `cd` command followed by the path to your file, then try running it again!

You're right! It gave me no errors this time, but still nothing displayed when I run the command. Do I need to check the Python installation?