fork download
  1. import itertools
  2. list_1 = [*range(1, 20)]
  3. list_2 = [*range(4, 110, 14)]
  4. list_3 = [*range(65, 42, -1)]
  5.  
  6. for (a, b, c) in itertools.zip_longest(list_1, list_2, list_3, fillvalue=''):
  7. print ("{: <8}{: <8}{: <8}".format(a, b, c))
Success #stdin #stdout 0.02s 9288KB
stdin
Standard input is empty
stdout
1       4       65      
2       18      64      
3       32      63      
4       46      62      
5       60      61      
6       74      60      
7       88      59      
8       102     58      
9               57      
10              56      
11              55      
12              54      
13              53      
14              52      
15              51      
16              50      
17              49      
18              48      
19              47      
                46      
                45      
                44      
                43