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(',')))