if __name__ == '__main__': # Runs main() if file wasn't imported.
main()
# Python program to execute
# main directly
print ("Always executed")
if __name__ == "__main__":
print ("Executed when invoked directly")
else:
print ("Executed when imported")