items = [
    ('Tabassum', 2),
    ('mony', 3),
    ('Tamanna', 1),
]


items.sort(key=lambda item: item[1])
print(items)

1f9130558b445e5c9058bcd1fb3f39d410fc9db0
<mask token>

<mask token>
items.sort(key=lambda item: item[1])
print(items)

items = [('Tabassum', 2), ('mony', 3), ('Tamanna', 1)]
items.sort(key=lambda item: item[1])
print(items)

items = [
    ('Tabassum', 2),
    ('mony', 3),
    ('Tamanna', 1),
]


items.sort(key=lambda item: item[1])
print(items)
