Posts by RFelix • 43 points
1 post
-
4
votes3
answers655
viewsQ: How to use a dictionary value to call a specific Python function?
I’m trying to use a dictionary to identify each function to a value, and call them over the program. My code is below (example): #!/usr/bin/env python menuOpt = { 1 : "valor", } #Main if __name__ ==…