list_a = [3, 9, 17, 15, 19]
list_b = [2, 4, 8, 10, 30, 40, 50, 60, 70, 80, 90]
for a, b in zip(list_a, list_b):
[TAB] If b > a:
[TABTAB] print b
[TAB] elif a > b:
[TAB,TAB] print a
The instructions say to use zip to compare each pair of elements and print the larger of the two. The code works, and allows to proceed to the next lesson, but it prints list_a, which is the smaller of the two.
I could have misunderstood what was happening when comparing the two lists, but my understanding is that list_b is larger so it should be printed. Any input or clarification on this would be much appreciated. Also, I apologize for the [TAB] formatting.