listintup = [(7,5), (6,4), (3,8), (9,10), (5,6)] #defining the input
def val2(y):  #function to retrive the second value
    return y[1]

sorted_listed=sorted(listintup, key=val2)
print("The sorted list of tuple in the increasing order of seCond element is \n", sorted_listed)


f95ae83ccd0c488b1840f0f319b8b2447f8cb624
<mask token>

<mask token>


def val2(y):
    return y[1]


<mask token>

<mask token>


def val2(y):
    return y[1]


<mask token>
print(
    'The sorted list of tuple in the increasing order of seCond element is \n',
    sorted_listed)

listintup = [(7, 5), (6, 4), (3, 8), (9, 10), (5, 6)]


def val2(y):
    return y[1]


sorted_listed = sorted(listintup, key=val2)
print(
    'The sorted list of tuple in the increasing order of seCond element is \n',
    sorted_listed)

listintup = [(7,5), (6,4), (3,8), (9,10), (5,6)] #defining the input
def val2(y):  #function to retrive the second value
    return y[1]

sorted_listed=sorted(listintup, key=val2)
print("The sorted list of tuple in the increasing order of seCond element is \n", sorted_listed)

