I have two lists defined in a python program, I'm getting user input via the input("...")
function.
The user is supposed to input a list name so I can print it to the console, the problem is that I can only print the list name and not the actual list itself.
Here are my lists:
aaa = [1,2,3,4,5]
bbb = [6,7,8,9,10]
Here is the code I'm using the get the user input:
a = input("Input list name")
Here is the code I'm using to print the list:
print(a)
Here is the expected output:
[1, 2, 3, 4, 5]
Instead this is the output I'm getting:
aaa