Hi everyone, I’m stuck on Step 25 of the Python OOP exercise

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 Movie is missing a docstring, so movie1.__doc__ is currently None. Add a proper triple-quoted docstring inside the Movie class 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!

Welcome to the forum @srisahansamanakkody

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Happy coding

can you please post all your code and a link to the challenge?