0

Can I print a list by knowing its string name? Here's a code example:

x=[1,2,3]
y="x"

The output that I want is:

[1,2,3]

Not by print(x), but I want to convert "x" to list that already exist x.

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437

0 Answers0