Jul-20-2020, 06:57 PM
Could someone please explain the order of the execution below? I thought main() is the very first function that get executed but somehow the print statement indicates main() cames at the end.
def main(): print("This is main") class user_input(): print("This is class") print(user_input()) if __name__ == "__main__": main()
Quote:This is class
<__main__.user_input object at 0x04A26328>
This is main