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 can you make modules in python?
Can you sort a set in python?
How do you sort values in descending order in python?
Does flask work with python 3?
Does python allow you to program in a structured style?
What is the output of this following statement?
What does do in python?
Is python numpy better than lists?
How do you delay in python?
What module is used to execute linux commands through the python script and give us with one example
What is == in python?
How do you call functions in python?