Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dictionary = { "a":function_1(), "b":function_2(), "c":function_3()}
- dictionary = { "a":"function_1()", "b":"function_2()", "c":"function_3()"}
- for key,value in dictionary.items():
- if key == something:
- wanted_variable = value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement