Search
 
SCRIPT & CODE EXAMPLE
 

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))
Comment

PREVIOUS NEXT
Code Example
Python :: Concat Sort codechef solution 
Python :: find & replace in csv file 
Python :: python ceiling division 
Python :: remove french stopwords with spacy 
Python :: pdf to string python 
Python :: python remove a character from a string 
Python :: get first element of array python 
Python :: Python - How To Check Operating System 
Python :: inpuit inf terfminal ppython 
Python :: print format round python 
Python :: rearrange columns pandas 
Python :: python program to check whether a number is even or odd 
Python :: data type array 
Python :: check if 2 strings are equal python 
Python :: print to file python 
Python :: numpy python 3.10 
Python :: standard deviation in python numpy 
Python :: convert int to string python 
Python :: SUMOFPROD1 Solution 
Python :: pandas bins dummy 
Python :: choose value none in pandas 
Python :: create python dataframe 
Python :: Python RegEx Searching for an occurrence of the pattern 
Python :: how to set global variable in python function 
Python :: bubble python 
Python :: adding strings together 
Python :: python type annotations list of specific values 
Python :: python file save 
Python :: replace in lists python 
Python :: flask delete from database 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =