Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Python __main__ example
from script_2 import *
def hello_super():
print("Hello Super!")
hello_super()
if __name__ == "__main__":
hello_sir(" juan")
def hello_world():
print("hello world!")
def hello_sir(name):
print("hello" + name)
hello_world()
if __name__ == "__main__":
hello_sir("fer")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.