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 output of this line?
Can we develop a site using python
What is the output of the below program?
Explain in detail – inheritance in python?
How is memory managed in python?
How would you create an empty numpy array in python?
How do you sort values in descending order in python?
What is form feed in python?
Is numeric in python?
What is python? What are the benefits of using python?
What is yield in python?
When should you use generator expressions vs. list comprehensions in Python and viceversa?