So basically here's a simplified version of my problem:
list1 = ["hi", "hello", "bye"]
list2 = ["x", "y", "z"]
variable = either "list1" or "list2"
And so I want to print the list that the value of the variable currently is but since it's a string, if you print it, it'll just print "list1"
or "list2"
. How could you print the correct list? Is there some function (I tried looking up one but I'm completely confused) that could convert it to a list name? Or some other way?