what does if __name__ = ‘__main__’ mean

In recent practice, I see this appear a lot but I don't know it. The following video greatly explains this concept and I'd like to write down my notes here. https://www.youtube.com/watch?v=sugvnHA7ElY __name__ is a variable which is set value before other code is executed. If the source file is run as the main program, __name__ … Continue reading what does if __name__ = ‘__main__’ mean