16/19 how is a "larger" than b?


#1



https://www.codecademy.com/courses/python-beginner-en-cxMGf/2/3?curriculum_id=4f89dab3d788890003000096#


I do not understand why it prints out list_a instead of list_b? In what way is it larger? This makes absolutely no sense to me.


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):
    # Add your code here!
    if a > b:
        print a
    else:
        print b


#2

it has nothing to do with the list itself, but with the elements in the list. The loop will loop over both lists, and print the highest number.

3 is bigger then 2
9 is bigger then 4
17 is bigger then 8
and so on, it is comparing the values at the same index in the different lists


#3

Alright thanks I was slightly puzzled because it said "larger" and logically b seems larger to me. I completely forgot about the loop.