Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind Python - Loop Sets?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
1Quick choice
Which statement best captures the main point of this lesson?
2Fill blank
Complete the missing token from the example code.
___ = {"apple", "banana", "cherry"}Loop Items
You can loop through the set items by using a for loop:
Example
thisset = {"apple", "banana", "cherry"}
for x in thisset:
print(x)