Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

doc strings python

# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A

def calculator(a,b):
    """This function add's the input from user"""
    return a + b
#here in the above function from the start to the ending of double colon is a doc string
#we can say docstrings are description of your python function
print(calculator(5,5))
 
PREVIOUS NEXT
Tagged: #doc #strings #python
ADD COMMENT
Topic
Name
9+2 =