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:
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
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!