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

What does this mean: *args, **kwargs? And why would we use it?

0 Answers  


What is the difference between `list` and `tuple` in Python?

2 Answers  


What does == mean in python?

0 Answers  


What are the components of python memory manager?

0 Answers  


How to find max length of any given sublist?

0 Answers  


What is the interactive mode?

0 Answers  


What are the two main types of functions?

0 Answers  


How do you override a method in python?

0 Answers  


In oops what is a diamond problem in inheritance?

0 Answers  


Is Python a compiled language or an interpreted language?

2 Answers  


What is the purpose of uuid?

0 Answers  


What is the function of negative index?

1 Answers  


Categories