From 56d867314fda0631ecf6040221fe3705346a0bb9 Mon Sep 17 00:00:00 2001 From: Stanislav Mykhailenko Date: Mon, 7 Nov 2022 20:27:09 +0200 Subject: [PATCH] Update Lesson 2 Task 2 to use set instead of a dictionary --- Lesson_2/task2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lesson_2/task2.py b/Lesson_2/task2.py index 0ae9f1a..ec1928a 100644 --- a/Lesson_2/task2.py +++ b/Lesson_2/task2.py @@ -5,4 +5,4 @@ # Return codes: # 0 - OK -print(list(dict.fromkeys(input("Enter a comma-separated list: ").split(',')))) +print(set(input("Enter a comma-separated list: ").split(',')))