Skip to content

Instantly share code, notes, and snippets.

@Gateswong
Created April 21, 2015 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gateswong/764233bd79f39d702836 to your computer and use it in GitHub Desktop.
Save Gateswong/764233bd79f39d702836 to your computer and use it in GitHub Desktop.
def get_a():
print 10
def get_b():
print 12
def get_c():
print 13
if __name__ == "__main__":
while True:
try:
input(">>")()
except NameError as ex:
print("This function is not defined!")
except KeyboardInterrupt:
print("Exiting...")
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment