Answer the question
In order to leave comments, you need to log in
How to run python file in windows shell?
I created a file and saved it to my desktop.
file script1.py
def main():
print("this is our script test file")
main()
Run Power shell :
C: \Users\user> cd Desktop
C: \Users\user> cd Desktop > script1.py
Exits new line
C: \Users\user> cd Desktop >
This is our script test file
doesn't work What am I doing wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question