# Docstrings are used create your own Documentation for a function or for a class # we are going to write a function that akes a name and returns it as a title. def titled_name(name): # the following sting is Docstring """This function takes name and returns it in a title case or in other words it will make every first letter of a word Capitalized""" return f"{name}".title()
Here is what the above code is Doing:
1. We have created a function titled_name that takes a name as an argument.
2. We have written a Docstring for the function.
3. We have returned the name in a title case.