Add Lesson 2 Task 2
This commit is contained in:
parent
024e30d6d2
commit
3ac3f8cd60
1 changed files with 9 additions and 0 deletions
9
Lesson_2/task2.py
Normal file
9
Lesson_2/task2.py
Normal 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(','))))
|
||||
|
Reference in a new issue