tuples as return values

Solutions on MaxInterview for tuples as return values by the best coders in the world

showing results for - "tuples as return values"
Niko
24 Mar 2019
1def f(r):
2    """ Return (circumference, area) of a circle of radius r """
3    c = 2 * math.pi * r
4    a = math.pi * r * r
5    return (c, a)
6
similar questions
queries leading to this page
tuples as return values