1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Object-Oriented Programming in Python

Connected

Exercise

Using the @property decorator

Now that you've practiced working with a class that implements descriptors, you'll get to build your own using the @property decorator. Good luck!

Instructions 1/3

undefined XP
    1
    2
    3
  • Use the @property decorator to begin the process of creating a descriptor for the email attribute; this method will return the email address inside of an f-string.