Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Python multiline comment using docstrings

Multiline docstring example
def Add(a,b):
    '''Takes two number as input 
     Adds a and b
     Returns sum of a and b as output
    '''
    return a+b

print(Add(5,6))
Comment

PREVIOUS NEXT
Code Example
Python :: programação orientada a objetos python - Pessoa 
Python :: javascript parse url with values and anchors 
Python :: Read data from excel file using openbyxl 
Python :: PHP echo multiple lines example Using Heredoc 
Python :: python compiler and shell online 
Python :: how to loop over all dates in python 
Python :: standard destructuring assignments in python 
Python :: Python - Comment vérifier une corde contient un nombre 
Python :: geomertry 
Python :: pandas ta quick start example 
Python :: membuat chat bot dengan python 
Python :: deezer python download 
Python :: countvectorizer minimum frequency 
Python :: unbreakable box made of diamond 
Python :: Replace u00a0 
Python :: locate certs path for python 
Python :: django filter and condition 
Python :: generate 3 pages pdf reportlab 
Python :: kroki - hello.dot 
Python :: predict probabilities with xg boost 
Python :: Install pip and add virtual environment to the Python Kernel 
Python :: File "main.py", line 11 if message.author == client.user: ^ IndentationError: expected an indented block 
Python :: python group groupe of 2 
Python :: take space away from strings ion pyhton 
Python :: ex: python arraay 
Python :: reload module 
Python :: Minimum Number of Operations to Move All Balls to Each Box in python used in function method 
Python :: remove item from list python grepper 
Python :: performance of extend vs append loop 
Python :: snipe cmd python.py 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =