summaryrefslogtreecommitdiff
path: root/progs/a744.py
blob: 7299c64ffe47bb82b0485fa104aaa5d6e9824002 (plain)
1
2
3
4
from operator import itemgetter
def index_on_inner_list(list_data, index_no):
    result = sorted(list_data, key=itemgetter(index_no))
    return result