WeCodeAcademy

Tuples and Sets

A tuple is a list that cannot change. A set keeps only unique items.

Examplepython
Open in editor »
Quick check

What does a set do with duplicates?

Your turn: write the code

Print how many different letters are in the word banana. A set helps.

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.