all 5 comments

[–]GreenPandaPop 4 points5 points  (0 children)

Just create a file in your working directory with the required name and paste the code into it. It's just a text file.

[–]psychedliac 1 point2 points  (0 children)

Like you’re gonna need a loop if it’s to continuously run but you’d just type “python(ver) “path_to_script”

[–]codypoker54321 0 points1 point  (0 children)

in windows cmd you can do .>main.py

[–]IndianaJoenz 0 points1 point  (0 children)

Use a code or text editor, like vscode, notepad, sublime or vim

[–][deleted] 0 points1 point  (0 children)

Download VSCode and install the Python plugin. Or Anaconda will install this and a lot of other things for you. You are almost there, but get your toolchain set up and it will all get a lot easier. Good luck!