- __main__
- __name__
Conditional main
examples/basics/conditional_main.py
def main(): print("Hello World") if __name__ == "__main__": main()
- We'll cover this later but in case you'd like, you can include this conditional execution of the main function.