If name is main
When using a main()
function it is common to use the condition if __name__ == '__main__':
. The video below explains why. This video assumes that you know how to create a python project consisting of multiple files, using import
.