Python Tutorial - if __name__ =='__main__'

Опубликовано: 30 Сентябрь 2024
на канале: 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