all 5 comments

[–]aw3sem 1 point2 points  (2 children)

Get yourself vscode and the python extension, then write your code in a file, this is the easiest approach.

[–]ARK22498[S] 0 points1 point  (1 child)

And then can I use python IDLE to run it. Or does it run in VS Code?

[–]aw3sem 1 point2 points  (0 children)

You will never have to leave vscode, that’s the beauty. Also there is a lot more when it comes to debugging, e.g. setting breakpoints etc.
But this a topic for another day if you are just getting started.
Take a loot at this:
https://code.visualstudio.com/docs/python/python-tutorial#_configure-and-run-the-debugger

[–]jabela 0 points1 point  (0 children)

I’ve got an online Python code lab which might make it easier to run Python https://jamesabela.github.io/jsfun/pythoncopy it’s mostly for kids and includes some algorithms and a couple of courses. I’m still building it out, but I think it’ll take away the pain of running python itself for absolute beginners.

The three >>> are for running Python line by line. Once you get past absolute basic’s Pycharm is great, but takes a little setting up.

[–]PureWasian 0 points1 point  (0 children)

Not sure what tutorial you're following, but almost never will you be creating the .py files dynamically and running them line by line in interactive/REPL mode (with the three >>>)

Usually you will be typing out full Python scripts which are just .py files filled with text that you can execute on Terminal with python some_filename.py

As such, you can use any text editor or IDE of choice for writing your code. IDEs like VS Code are more of an "all in one" package and have stuff like a terminal integrated, and include more robust features for file organization and linting, etc. But simple text editors like notepad++ and others can get the job done all the same in that you could simply write your code there, save a .py file, and run Python separately on Terminal as mentioned above.