l1 = ["a","b","c"]
l2 = ["d","e","f"]
var1 = input("What list do you want to use? (l1 or l2)"
print (var1)
output: l1
how do I make it so if the user types in l1 the output will be: ["a","b","c"]
?
The closest example I have found is:
x='buffalo'
exec("%s = %d" % (x,2))