Python Tutorial - if __name__ =='__main__'

Published: 14 March 2018
on channel: Amulya's Academy
81,387
2.4k

In this Python Programming video tutorial you will learn about if _name_ == '__main__' condition in detail.

_name_ is an built in variable which will return the name of the module.
_name_ is set to '__main__' when we run our program as main program if our program is being imported by some other program then _name_ is set to module name.

For more free tutorials on computer programming
  / amulsacademy  
  / amulsacademy  


Watch video Python Tutorial - if __name__ =='__main__' online without registration, duration hours minute second in high quality. This video was added by user Amulya's Academy 14 March 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 81,387 once and liked it 2.4 thousand people.