Update Lesson 2 Task 2 to use set instead of a dictionary

This commit is contained in:
Stanislav Mykhailenko 2022-11-07 20:27:09 +02:00
parent ce6f17c445
commit 56d867314f
GPG key ID: 1E95E66A9C9D6A36

View file

@ -5,4 +5,4 @@
# Return codes: # Return codes:
# 0 - OK # 0 - OK
print(list(dict.fromkeys(input("Enter a comma-separated list: ").split(',')))) print(set(input("Enter a comma-separated list: ").split(',')))