From 9683c3001cf9402b43777c1753a5f9b4c09e5598 Mon Sep 17 00:00:00 2001 From: 0KvinayK0 <126001522+0KvinayK0@users.noreply.github.com> Date: Wed, 24 May 2023 18:11:38 +0530 Subject: [PATCH] Update Day 2.md Add alternative solution for Day 2 Question 8 --- Status/Day 2.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Status/Day 2.md b/Status/Day 2.md index 37aaf66..0768182 100644 --- a/Status/Day 2.md +++ b/Status/Day 2.md @@ -362,7 +362,13 @@ my_list = input('Enter a comma separated string: ').split(",") my_list.sort(key=my_func) print(",".join(my_list)) ``` - +--- +```python +'''Solution by 0KvinayK0 +''' +li = input().split(',') +print(','.join(sorted(li))) +``` --- # Question 9