Blog

When will the method main execute?

# script name app.py
print(‘Hello’)
def main():
print(‘Main Method’)
if __name__ == ‘__main__’:
main()