I've a value assigned to a variable and I'm generating variable name by using loops. I wanted to assign the actual value of generated variable. If I follow the below method it is assigning string instead of value.
full_C3_sucess = 10
comp_Nonc3 = 100
for stage in ["C3", "Nonc3"]:
    for dtype in ["full", "comp"]:
        deployment = {}
        format = dtype + "_" + stage
        deployment['deployAttempted'] = format + "_sucess"
If I print deployment['deployAttempted'], it is having the string full_c3_sucess instead of it original value. Can somebody help me here.
 
     
     
     
    