Home » Tip Bank » Web Development » Python And Perl
  • Comment on this Article
Language: Web
Expertise: Intermediate
Apr 3, 2020

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Watch

Return Multiple Values from a Function 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)  
Srinath M S
 
Submit a Tip
Browse "Web Development" Tips
Browse All Tips
codeschool.com
enable-javascript.com