A Simple function definition: return a tuple. : Tuple Returned « Tuple « Python






A Simple function definition: return a tuple.

A Simple function definition: return a tuple.



def quadcube (x):
     return x**2, x**3
 
a, b = quadcube(3)

print a

print b

           
       








Related examples in the same category