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 do you access private methods in python?

0 Answers  


What is the process to get the home directory using ‘~' in python?

0 Answers  


What does len () do in python?

0 Answers  


What is the difference between a function and a method python?

0 Answers  


What is data hiding in python?

0 Answers  


What are the disadvantages of Python Recursion?

0 Answers  


How to convert a list into a tuple?

0 Answers  


What are assignment operators in python?

0 Answers  


Does python allow you to program in a structured style?

0 Answers  


What is the difference between range and arange in python?

0 Answers  


How will you convert an integer to a unicode character?

0 Answers  


What is map and filter in python?

0 Answers  


Categories