[Solved] how to transform a string in a variable name ? python [duplicate]

[ad_1]

print(eval(str(“value” + str(x))))

But must not use eval even if you know it’s completely secure. There is always a better way.

6

[ad_2]

solved how to transform a string in a variable name ? python [duplicate]