Answer Posted / 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 |
Post New Answer View All Answers
How to get a list of class attributes in python?
What is map and filter in python?
Are lambda functions faster python?
What is memory management in python?
Explain the shortest way to open a text file and display its contents?
What does the term ‘monkey patching’ refers to in python?
What do you understand by the term deep copy?
What are the tools that help to find bugs or perform static analysis?
how do you reverse a list in python?
Why python language is called python?
How will you share global variables across modules?
What do you think is the output of the following code fragment?
Is print a function in python?
How manages to python handle memory management?
What is super () in python?