# Write a  program to sort a list of tuples using Lambda.
# Original list of tuples: [('English', 88), ('Science', 90), ('Maths', 97), ('Social sciences', 82)] Sorting the List of Tuples: [('Social sciences', 82), ('English', 88), ('Science', 90), ('Maths', 97)]


marks = [('English', 88), ('Science', 90), ('Maths', 97), ('Social sciences', 82)]
print("Original list of tuples:", marks)

marks.sort(key = lambda x: x[1])
print("Sorting the List of Tuples:", marks)

b4bba7196c2d700a3f23a8c47d2d7178cce1a3e6
<mask token>

<mask token>
print('Original list of tuples:', marks)
marks.sort(key=lambda x: x[1])
print('Sorting the List of Tuples:', marks)

marks = [('English', 88), ('Science', 90), ('Maths', 97), (
    'Social sciences', 82)]
print('Original list of tuples:', marks)
marks.sort(key=lambda x: x[1])
print('Sorting the List of Tuples:', marks)

# Write a  program to sort a list of tuples using Lambda.
# Original list of tuples: [('English', 88), ('Science', 90), ('Maths', 97), ('Social sciences', 82)] Sorting the List of Tuples: [('Social sciences', 82), ('English', 88), ('Science', 90), ('Maths', 97)]


marks = [('English', 88), ('Science', 90), ('Maths', 97), ('Social sciences', 82)]
print("Original list of tuples:", marks)

marks.sort(key = lambda x: x[1])
print("Sorting the List of Tuples:", marks)
