1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Python for Developers

Connected

Exercise

Multi-line docstrings

Sometimes single-line docstrings are sufficient, but if your function is more complex or has several arguments, then it is generally a better choice to include a multi-line docstring.

You'll practice this by creating a multi-line docstring for the clean_text() function you made earlier.

Instructions 1/3

undefined XP
    1
    2
    3
  • Add the following summary to the docstring: Clean text by swapping spaces to underscores and converting to lowercase..