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 are the built-in types of python?

870


What is sys stdout flush ()?

881


What is a sympy?

1084


What is the use of numpy package?

925


What are the file-related modules we have in python?

911


Explain try keyword?

937


What is map and filter in python?

843


How to do relative imports in python?

864


Number of argument’s that range() function can take ?

826


What do you understand by python generator?

968


Is Python a good choice for web development

873


Get the cartesian product of a series of lists?

835


What is python db api?

873


Are uuids sequential?

753


What is difference between list and set in python?

859