Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do we make python scripts executable?

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


Please Help Members By Posting Answers For Below Questions

What is the difference between read and readlines in python?

769


How to find max length of any given sublist?

824


What is a class method?

777


What are python variables?

845


What functions or methods will you use to delete a file in python?

849


How to remove whitespaces from a string in python?

899


Which module is used to control the gpio in python?

865


What is python keyword?

810


How would you convert a string into lowercase in python?

851


How do I run a python file in python shell?

787


What does the function zip() do?

812


How do you sort a list of numbers in python?

776


Are methods and constructors the same thing?

800


What’s the difference between raw_input() and input() in python3.x?

880


Is intel faster python?

722