Hi everyone, I’m stuck on Step 25 of the Python OOP exercise.
The instruction says:
“You should print
movie1.__doc__.”
Then I get this error:
“Your class
Movieis missing a docstring, somovie1.__doc__is currentlyNone. Add a proper triple-quoted docstring inside theMovieclass definition and try again.”
However, I already have a docstring inside the Movie class:
class Movie:
"""Parent class representing a movie."""
def __init__(self, title, year, director, duration):
...
I also have:
print(movie1.__doc__)
print(series1.__doc__)
I have tried running the full code several times, but the same error keeps appearing.
Could someone please explain why freeCodeCamp is still saying that the Movie class is missing a docstring and what exactly I need to change for Step 25?
Thanks!
