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 do you access private methods in python?
What is the process to get the home directory using ‘~' in python?
What does len () do in python?
What is the difference between a function and a method python?
What is data hiding in python?
What are the disadvantages of Python Recursion?
How to convert a list into a tuple?
What are assignment operators in python?
Does python allow you to program in a structured style?
What is the difference between range and arange in python?
How will you convert an integer to a unicode character?
What is map and filter in python?