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 difference between range () and xrange () in python 3?
Does python use ram?
Is python numpy better than lists?
What are the advantages of python?
Why python is used?
Why is python good for beginners?
How will you distinguish between numpy and scipy?
What does while 1 mean in python?
What is a class attribute?
How does python sort work?
Explain Python packages.
Explain about negative indexing?