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?



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

Post New Answer

More Python Interview Questions

How does for loop and while loop differ in python and when do you choose to use them?

0 Answers  


What is setup cfg?

0 Answers  


What do u mean by instance?

0 Answers  


What are python scripts used for?

0 Answers  


What is __ new __ in python?

0 Answers  


What is def __ init __ in python?

0 Answers  


What does time sleep do in python?

0 Answers  


What is __ file __ in python?

0 Answers  


How do I debug an extension?

0 Answers  


Are numpy arrays faster than lists?

0 Answers  


How to comment multiple lines in python?

0 Answers  


Define pyramid in python?

0 Answers  


Categories