How do we make python scripts executable?
Answer / chaitanya
Python scripts can be executed in two ways:
Suppose I want to execute script1.py
We can open the script1.py in IDE editor & run the script in the frontmost window of the python IDE by hitting the run all button.
Second way is using command prompt by making sure PATH is set appropriately directly type script name else type
>>>python script1.py
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the meaning of stdin in python?
How do you sort in python 3?
Is geany good for python?
How do you sort a list in python?
Will the do-while loop work if you don’t end it with a semicolon?
What are the 5 tuples?
Which website is best for python?
Is python 0 based?
How can you explicitly free memory in python?
Can you use tabs in python?
What is end in python?
What is Pickling and unpickling?