How in Python to make the program itself could create variables, lists, tuples, etc.?

How in Python to make the program itself could create variables, lists, tuples, etc.?
September 19th 19 at 12:48
1 answer
September 19th 19 at 12:50
Solution
exec()
eval()
also look in the source code of the class namedtuple module collections
>>> exec('a = [1,2,3]')
>>> a
[1, 2, 3]

Find more questions by tags PythonProgramming