...

Chapter 8 - Python Quest

Sets

Use uniqueness, membership, overlap, and difference to clean repeated data.

XP
0Level 1
Stars
0/15quest stars
Combo
0clean runs
Rank
Seed0/160 Python score
Sets

Sticker Set

100 XP

The sticker table has a pile with repeats, but the album only cares how many different sticker designs there are.

Write unique_sticker_count(stickers) so it returns how many different sticker names are in stickers.

Sample checks

unique_sticker_count(["star","moon","star"])returns2

Explanation: star only counts once

unique_sticker_count(["rocket","rocket","rocket"])returns1

Explanation: one design repeated many times

Hint

Hints are ready when you want one.

Lesson reference

Review: One of each value

Your Python

unique_sticker_count

Loading editor

Judge

Ready

0/4

Run your code when it feels ready.