Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)

I need to execute a python file in my command prompt yet it sits idle. These were the screenshots of my code I'm testing with and the yield the command prompt gives me.

1 Answer

0 votes
by (26.4k points)

First, You need to set the path of python, Check this link if you want to know how to set the path.

and now run the python file

python filename.py

Try the below command line argument:

python filename.py command-line argument

Want to become a expert in Python? Join the python course fast!

Related questions

+1 vote
2 answers
0 votes
1 answer
0 votes
2 answers
0 votes
4 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...