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
What is the difference between read and readlines in python?
How to find max length of any given sublist?
What is a class method?
What are python variables?
What functions or methods will you use to delete a file in python?
How to remove whitespaces from a string in python?
Which module is used to control the gpio in python?
What is python keyword?
How would you convert a string into lowercase in python?
How do I run a python file in python shell?
What does the function zip() do?
How do you sort a list of numbers in python?
Are methods and constructors the same thing?
What’s the difference between raw_input() and input() in python3.x?
Is intel faster python?