Is there a way to pass a variable to the choice() function for a list. I have a bunch of lists and I want to randomly select from one list and then use the string that is returned to select from a list that has that string name.
A = ['1','2','3'] print choice (A) - this gets me a random choice from the list but I want to to store the choice as a variable and use it to call another list
A = ['1','2','3'] 1 = ['A','B','C'] Var1 = choice (A) print choice (Var1) *** this is my problem, how do I pass a variable to the choice function Thanks for the help!
1 = ['A','B','C']?! Holy ****!