Suppose I have 3 lists like these
l1 = [1,2,3]
l2 = [4,5,6]
l3 = [7,8,9]
How can I print all of these lists at once? What is the pythonic way to do something like this?
for f in l1,l2 and l3:
print f
This seems to allow for 2 lists.
Desired conclusion: for each element in all lists I print them using another function
def print_row(filename, status, Binary_Type):
print " %-45s %-15s %25s " % (filename, status, Binary_Type)
and I call the above function inside the for loop.
source
share