Add Lesson 2 Task 2

This commit is contained in:
Stanislav Mykhailenko 2022-10-27 18:20:31 +03:00
parent 024e30d6d2
commit 3ac3f8cd60
GPG key ID: 1E95E66A9C9D6A36

9
Lesson_2/task2.py Normal file
View file

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