p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Working With Iterables II
Exercise: Set Comprehension — Unique Values
Exercise: Set Comprehension — Unique Values
Use a set comprehension to collect unique values from a list.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output