"""Compute the area/circumference of a circle"""
import math
# compare this version of area computation
def area1(radius) :
temp = math.pi * radius**2
return temp
# this one:
def area2(radius) :
return math.pi * radius**2
# the latter is more concise, while the former may be easier
# to debug
def circumference(radius) :
return 2 * math.pi * radius
# here's how to return multiple values from a function:
def area_circ(radius) :
return area1(radius), circumference(radius)
if __name__ == '__main__' :
area, circumference = area_circ(1)
print area, circumference
