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, duration hours minute second in high quality that is uploaded to the channel Amulya's Academy 14 March 2018. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 81,387 times and liked it 2.4 thousand visitors.