Suppose I have 3 lists such as these
l1 = [1,2,3]
l2 = [4,5,6]
l3 = [7,8,9]
how do I get to print out everything from these lists at the s
No need to use zip, just add them together using the + operator. l1 + l2 + l3 creates a new list that is the combination of l1, l2 and l3 so you can simply loop through that, like so:
for f in l1+l2+l3:
print(f)
Your use of the and operator is incorrect. The other reason why your code doesn't work is using commas (like l1, l2, l3) creates a tuple, which is a container that now holds your 3 lists. So when you try to loop through l1, l2, l3 it will loop through every element in that tuple (which are the lists) and not through every element in the lists as you intend.