From 411a63d766ce49d857b47f4fcacf05e4b80039a4 Mon Sep 17 00:00:00 2001 From: David Avery Date: Wed, 5 Feb 2020 13:38:23 +0000 Subject: [PATCH] Lesson 68 --- basics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basics.py b/basics.py index 7f31e92..2cadd56 100644 --- a/basics.py +++ b/basics.py @@ -1,4 +1,4 @@ -def uppersort(*args): - return sorted([str.upper(arg) for arg in args]) +def uppersort(**kwargs): + return kwargs -print(uppersort('b', 'a', 'd', 'c')) \ No newline at end of file +print(uppersort(a='b', b='a', c='d', d='c')) \ No newline at end of file