Properties Instead of Getters

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

A colleague coming from Java has written get and set methods for every attribute of a Python class. Explain why that's unusual in Python and how properties let you add logic later without changing callers.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →