I'm trying to start programming in Python on my Mac, but I'm hitting a snag. I've downloaded Python and opened the terminal, but when I try to input any code, it shows my email and I get an error saying -bash: 1: command not found. I don't know what I'm doing wrong and would really appreciate some guidance on how to fix this.
2 Answers
It sounds like you might be trying to enter Python code directly into the terminal. Firstly, try typing `python3` and hit enter. This should get you into the Python REPL where you’ll see a prompt like `>>>`. From there, you can input your Python code.
Starting with an IDE can make things easier. If you don't have one, I recommend downloading Visual Studio Code (VSCode). Once you have that, install the Python extension from the marketplace. Create a new folder for your projects, and inside it, create a new file with a `.py` extension. You can write your code there and run it! For example, use `print("Hello World!")`, and hit the run button at the top.

Thanks for the advice! I appreciate it but I’m a bit lost. Can you break it down more for me?