Jun-16-2021, 12:34 PM
Hello,
I am a beginner in Phyton. It is a very basic question I guess, but pls help me anyway :)
What do I have to put inside the brackets?
Cheers
I am a beginner in Phyton. It is a very basic question I guess, but pls help me anyway :)
listA=[] a=input() globals()[a]=[] #generates a new list with the name of the input string listA.append(????????) #question--> I would like to add the new list to listA. I know the name is in a, but if I put a in, the string gets added to listA and not the new list.
What do I have to put inside the brackets?
Cheers