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 many constructors can a class have?
What does means by “call by reference” in python?
What animals sleep the least?
Is numpy faster than pandas?
Do you know the number of keywords in python?
What is python? What are the benefits of using python?
Why python is popular now?
What are packages in python which are commonly used explain one ?
Do they know a tuple/list/dict when they see it?
What is python inheritance?
Which operator will be helpful for decision making statements?
What are the advantages of using python?