Writing a specific function in python

I believe this function may help you:
You can find out more about iterating pairs here.

def f(pairs):
    for x, y in pairs:
        if x > y:
            return x

Leave a Comment