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 handle exceptions with try/except/finally in python?

0 Answers  


How is Python used in web development?

0 Answers  


What is the procedure to extract values from the object used in python?

1 Answers   LeapZen,


What advantages does Python offer as a programming tool in today's environment?

3 Answers  


What good is recursion?

0 Answers  


What is self in oop of python?

0 Answers  


What is pass in Python?

0 Answers  


How to convert a number to a string?

0 Answers  


Define a method in Python?

0 Answers  


Mention what is the difference between Django, Pyramid, and Flask.

0 Answers  


What is python namespace?

0 Answers  


Differentiate between .py and .pyc files?

0 Answers  


Categories