Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

return multiple values from a function python

def operate(a, b):
    sum = a + b
    diff = a - b
    mul = a * b
    div = a / b
    return sum, diff, mul, div
Source by www.codingem.com #
 
PREVIOUS NEXT
Tagged: #return #multiple #values #function #python
ADD COMMENT
Topic
Name
7+5 =