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 does this mean: *args, **kwargs? And why would we use it?
What is the difference between `list` and `tuple` in Python?
What does == mean in python?
What are the components of python memory manager?
How to find max length of any given sublist?
What is the interactive mode?
What are the two main types of functions?
How do you override a method in python?
In oops what is a diamond problem in inheritance?
Is Python a compiled language or an interpreted language?
What is the purpose of uuid?
What is the function of negative index?