Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

need help executing py program (super noob)

I've had a program coded in py, just need help running it, sorry in advance, i feel like I'm asking the equivalent of "how do you turn a car on".
I will help you, send me a dm
Hello, Djangoo would love to solve your coding problems with Python.
Programming service | Automating stuff with Python | Homework
Navigate to the directory that has your program file using cd and then run python3 filename.py
If you use older version of python (2.x) navigate to the directory where file is and write
Code
python [filename].py
If you use newer versions of python (3.x) navigate to the directory where file is and write:
Code
python3 [filename].py

Navigation through directories should be same in most of the terminals. It is:
Code
cd directory_path
Or if you miss one directory and you want go back to previous one:
Code
cd ..


Possibly Related Threads...
Thread / Author Replies Views Last Post
by hanterokJun 26, 2023 01:04 PM 4 397 Jun 26, 2023 01:04 PM
Last Post: hanterok
[C] by ConcentratedNagaJan 18, 2021 10:51 PM 0 153 Jan 18, 2021 10:51 PM
Last Post: ConcentratedNaga
[C] by ShallowMEOct 15, 2020 12:49 PM 8 416 Oct 15, 2020 12:49 PM
Last Post: Goodies