- Code: Select all
`# calculates are for rectangles and circles them when provided`

while True:

print "welcome to the area calculation program"

print "--------------------------------------"

print

# print out out the menu:

# start

print "please select a shape:"

print "1 rectangle"

print "2 circle"

# user choice

shape = input(">")

# calculate area

if shape ==1:

height = input("please enter the height")

width = input("please enter the width")

area = height*width

print "the area is", area

else:

pi = input("define pi")

radius = input("please enter the radius:")

area = pi*(radius**2)

print "the area is", area

print "again?"

finished = input("y/n")

if finished(y): break

It'd be much appreciated if someone could help me