Hi all,
I have two questions with regard to initializing empty lists. This works:
Second, on the left if I use equals signs instead of commas, then I get all three labels pointing to a generator object. Why?
I have two questions with regard to initializing empty lists. This works:
list_a, list_b, list_c = ([] for i in range(3))What exactly do the parentheses mean on the right? Without them I get a syntax error. With them, though, I don't recognize what kind of statement it makes. For example, it's not a list comprehension as that would be in brackets.
Second, on the left if I use equals signs instead of commas, then I get all three labels pointing to a generator object. Why?