[Go to site: main page, start]

2 Comments
User's avatar
Reinhard Schaeck's avatar

Hi,

I really like the "Harry Potter Series" about OOP (although I have to admit that so far I haven't read a single Harry Potter book - shame on me). I worked through all articles and found only one single small bug (I think it is a bug?).

In #6 when introducing the __repr__ method the test starts:

# In a new REPL session

>>> from hogwarts_magic import Student

It should be:

>>> from hogwarts_magic import Student, Professor

Just my five cent...

Reinhard

Stephen Gruppetta's avatar

Ah indeed, you’re probably right. I’ll look at the code when I’m back at my computer, but I’m sure you’re correct!

    This site requires JavaScript to run correctly. Please turn on JavaScript or unblock scripts