Forums

Non-programmer here. How do I run a Python code file?

Hey all, hoping someone can help me out (I'm not a programmer).

I had a freelancer write a python script for my website - I now, apparently, need someplace to run it.

How would I do that here? I have a file type with a .py extension. (yadayada.py)

Thanks.

Wes

Go to a Bash console and use python file.py command to run file.py. You should also specify the python version, e.g. python3.7 file.py