summaryrefslogtreecommitdiff
path: root/progs/a295.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a295.py')
-rw-r--r--progs/a295.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a295.py b/progs/a295.py
new file mode 100644
index 0000000..7a18a0c
--- /dev/null
+++ b/progs/a295.py
@@ -0,0 +1,4 @@
+def last(n):
+ return n[-1]
+def sort_list_last(tuples):
+ return sorted(tuples, key=last) \ No newline at end of file