Stuck


#1



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!
    print a
    print b
    if b>a:
        print b
    else:
        print a



INSTRUCTIONS.


Compare each pair of elements and print the larger of the two.


#2

Those two lines are not needed. Only print in the conditional as you have.

For more help with this, please include a link to the lesson.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.