diff options
Diffstat (limited to 'progs/a744.py')
-rw-r--r-- | progs/a744.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a744.py b/progs/a744.py new file mode 100644 index 0000000..7299c64 --- /dev/null +++ b/progs/a744.py @@ -0,0 +1,4 @@ +from operator import itemgetter
+def index_on_inner_list(list_data, index_no):
+ result = sorted(list_data, key=itemgetter(index_no))
+ return result
\ No newline at end of file |