Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Return multile value from a function using Out keyword

 Sometimes we face the situation where we need to return more than one value from the function. But a function never returns more than one value. Here we need to do something different like we create a different function for a different task...

Returning Multiple Values in Python using Dictionary?

# A Python program returning multiple values from a method using dictionary # Function is define that returns a dictionary def fun(): d = dict(); d['str'] = "Demo" d['x'] = 20 return d # Driver code to test abo...

Returning Multiple Values in Python using tuple?

# A Python program returning multiple values from a method using tuple # Function is defined that returns a tuple def fun(): str = "Demo" x = 20 return str, x; # Returning a tuple # Driver code to test above method ...

Returning Multiple Values in Python using list?

# A Python program returning multiple values from a method using list # Defining a function which returns a list def fun(): str = "Demo" x = 20 return [str, x]; # Driver code to test above function list = fun() ...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: