I have a global variable one, two, three ... and I have a variable "num" (it is a string) that can be "one" or "two" or "three" ...I want to do the next thing :
if num == "one":
   one = True
elif num=="two":
   two = True
elif num=="three":
   three = True
...
in perl I can do it with 1 line : something like eval "$num = True" instead of the long if else above. How can I do it in python ?
 
     
     
     
    