Learn Python Training from the Best Tutors
Search in
Asked by Ankita Last Modified
Michael Devine
Enhance your skill set with quick courses in 'python', 'javascript' & 'sap ui5 / fiori / abap'
definations
if __name__ == '__main__':
implementation statements
This is block included in modules that contain definations of functions and class types, so that, the implementation statements for testing these definations may be executed on condition that the executing program is the module itself (__name__ == '__main__':).
If the module was imported and executed from another program, then the condition will not be satisfied and the implementation statements will be suppressed.
**This is wondeful feature of Python that enables nesting of modules without worrying about the danger of local implementation statements in the module getting executed in the importing program.
read lessRelated Questions
Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com
Ask a QuestionRecommended Articles
Top 5 reasons why you should learn Python
Python is one of the most popular programming languages in the world. It is general-purpose, object oriented, high-level programming language used in a number of programming fields. Python is a great programming language to learn as it will introduce you to the world of programming. If you are from the technical background...
Read full article >
What is Applications Engineering all about?
Applications engineering is a hot trend in the current IT market. An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...
Read full article >
Top 5 Skills Every Software Developer Must have
Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today. In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...
Read full article >
Learn Hadoop and Big Data
Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...
Read full article >
Looking for Python Training classes?
Learn from the Best Tutors on UrbanPro
Are you a Tutor or Training Institute?
Join UrbanPro Today to find students near youThe best tutors for Python Training Classes are on UrbanPro
The best Tutors for Python Training Classes are on UrbanPro