diff --git a/Lesson_2/task2.py b/Lesson_2/task2.py new file mode 100644 index 0000000..09a3b1f --- /dev/null +++ b/Lesson_2/task2.py @@ -0,0 +1,9 @@ +# Lesson 2 Task 2: remove duplicates from a list +# Author: Stanislav Mykhailenko +# License: Unlicense + +# Return codes: +# 0 - OK + +print(list(dict.fromkeys(input("Enter a comma-separated list: ").split(',')))) +