switch('a', {'abc': 1}, 'default') #returns 1
switch('a', {('a','b','c'): 1}, 'default') #returns 1
def switch(match, dictionary, default="no match"): return dictionary.get(match, default)