-
-
Save Gateswong/764233bd79f39d702836 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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