So I have been trying to display four lists in a table format but I am not sure how to go about doing that with large spaces in between the column. This is what I am trying to get:
Number List1 List2 List3
==========================================
1 34 16 24
2 23 27 46
3 12 17 47
4 11 43 72
5 14 22 46
This is the code that I have so far:
list1 = [16, 17, 14, 21, 16, 13, 10, 11, 16, 17]
list2 = [18, 17, 18, 13, 18, 21, 24, 23, 16, 17]
list3 = [0, 0, 2, 0, 0, 0, 0, 0, 2, 0]
print("Number\t\tlist1\t\tlist2\t\tlist3")
print(90*"=")
for x in range(10):
print(x+1)
for element,element2,element3 in list1,list2,list3:
print(element,element2,element3)
Only the list of 10 prints, how can I print all the other terms?