How can I make many empty lists without manually typing the following?
list1=[], list2=[], list3=[]
Is there a for loop that will make me ‘n’ number of such empty lists?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A list comprehension is easiest here:
Be wary not to fall into the trap that is: