I am trying to use functional programming to create a dictionary containing a key and a function to execute:
myDict={} myItems=(\"P1\",\"P2\",\"P3\",....\"
def p1( ): print("in p1") def p2(): print("in p2") myDict={ "P1": p1, "P2": p2 } name=input("enter P1 or P2")
myDictname