Update Lesson 2 Task 2 to use set instead of a dictionary
This commit is contained in:
parent
ce6f17c445
commit
56d867314f
1 changed files with 1 additions and 1 deletions
|
@ -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(',')))
|
||||||
|
|
Reference in a new issue