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

Connected

Exercise

Building a Playlist

Now that you've gotten the hang of building custom iterators, you'll practice creating your own Playlist class, to play your favorite songs.

Instructions 1/3

undefined XP
    1
    2
    3
  • Observe the initial definition of the Playlist class, then define a magic method to return an iterator object.