r/learnpython • u/South-Put-7948 • 1h ago
About running python code in terminal
Guys, I am beginner. I have the python code and have saved in file. Now I want to place the file path in the terminal and run that code. I don't know what should I write before adding the file path? Please help!
3
Upvotes
View all comments
•
u/avalexva 35m ago
Hey!
what your system?
Windows
Open Command Prompt or PowerShell, then:
or for mac and linux
or open you provider in dir with your file, and right click + shift (this for windows) "run powershell here"