Skip to content

Instantly share code, notes, and snippets.

@b1naryth1ef
Created July 28, 2011 17:07
Show Gist options
  • Save b1naryth1ef/1111973 to your computer and use it in GitHub Desktop.
Save b1naryth1ef/1111973 to your computer and use it in GitHub Desktop.
Method 2: Dictionarys
def MyFunc1(iny):
print iny
def MyFunc2(iny):
print iny*2
def MyFunc3(iny):
print iny*3
d = {"A":MyFunc1,"B":MyFunc2,"C":MyFunc3}
d['A']("hi")
d['B']("hi")
d['C']("hi")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment