dcsimg
 

Submitted by: Srinath M S(srinath_ms@yahoo.com)

Friday Apr 3rd 2020 by Srinath M S

Language: Web, Expertise: Intermediate: Learn how to return multiple values in Python.

Python can return multiple values at a time. See below for a simple example.

def multipleValueFunc(): 
    z = 11 
    b = 22
    return z, b
  
j,k  = multipleValueFunc () 
print(j, k)  
Home
Mobile Site | Full Site