Yes. Look at it. There is a definite mismatch.
The lesson asks you to document the function you are writing as a first step. While I think this is a bit presumptuous of an writer to start with this declaration, the authot of this course thinks otherwise. I would write it only after I know the function works.
A docstring is one of two things. First, as documentation of the function, as in a description of what the function is both returning, and what it is accepting as arguments. Something to help readers understand the code. If the docstring is placed just inside the function before any other code, then Python has access to it through the
.__doc__ attribute of the function object.
Second, as preformatted text that repeats on user inputs, such as a complex menu with options and descriptions that cannot be displayed on a single line. This sort of preformatting in a normal
str object is rather more convoluted. Either are valid but authors tend to choose what mitigates their need with the greatest simplicity.