Skip to content
Sharp

Core Collections · interview question

What is the healthiest performance judgment around tuples?

Multiple choiceMediumchapter-3-curatedpremiumcore-collectionstuples
python
location = ("Aisle-2", "Shelf-4")
aisle, shelf = location
print(aisle, shelf)
Choose one answer
Answer and explanation

Correct answer

D. Measure before optimizing, then change the part that actually dominates cost instead of guessing from style alone.

Why

Premature optimization is usually weaker than targeted optimization backed by measurement.

Test yourself on Core Collections

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

Start free test
All Core Collections questions →