1def calculator(a,b):
2 """This function add's the input from user"""
3 return a + b
4#here in the above function from the start to the ending of double colon is a doc string
5#we can say docstrings are description of your python function
6print(calculator(5,5))
1# Docstrings are used create your own Documentation for a function or for a class
2# we are going to write a function that akes a name and returns it as a title.
3def titled_name(name):
4 # the following sting is Docstring
5 """This function takes name and returns it in a title case or in other
6 words it will make every first letter of a word Capitalized"""
7 return f"{name}".title()