Skip to main content

Practice

Attribute Lookup Practice

⭐⭐⭐ advanced~18 min of coding3 challenges

Predict, then prove, how Python resolves attributes through the lookup chain.

Checking your progress…0%

What you will practice

  1. Who wins the lookup?⭐⭐⭐ advanced
  2. Delegating proxy with __getattr__⭐⭐⭐ advanced
  3. Predict the MRO chain⭐⭐⭐ advanced

Need the concept first? Re-read the lesson.