Skip to content
Sharp

Core Collections · interview question

Which naming or modeling choice is strongest for sets?

Multiple choiceMediumchapter-3-curatedpremiumcore-collectionssets
python
seen_skus = {"SKU-1", "SKU-2"}
seen_skus.add("SKU-3")
print("SKU-2" in seen_skus)
Choose one answer
Answer and explanation

Correct answer

A. Use names and structures that describe the business fact directly instead of temporary implementation noise.

Why

Clear naming and modeling shorten debugging, review, and onboarding time.

Test yourself on Core Collections

A free test with instant, explained results. No account needed.

Start free test
All Core Collections questions →