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 are methods in python?
What is overloading in python?
Write program to find the common elements from two sets?
Explain how can you access a module written in python from c?
How to do relative imports in python?
Which is the default function in a class?
Different file processing modes supported by python?
What is tuple unpacking?
What are the benefits of using python? What do you understand of pep 8?
How to iterate through two lists in parallel?
What is a dataframe in python?
Can you explain the life cycle of a thread?