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 indexing? Explain with an example
What is setup script?
What are benefits of python?
What is a negative indexing in python?
Why python language is called python?
What applications are written in python?
What is class super?
What is built-in type in python?
How do you write a range in python?
How would you implement inheritance in python?
How many name spaces are defined in python?
How do I use python idle?