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 |
How does for loop and while loop differ in python and when do you choose to use them?
What is setup cfg?
What do u mean by instance?
What are python scripts used for?
What is __ new __ in python?
What is def __ init __ in python?
What does time sleep do in python?
What is __ file __ in python?
How do I debug an extension?
Are numpy arrays faster than lists?
How to comment multiple lines in python?
Define pyramid in python?