if shape == 1:
print "Area of a Rectangle
print "---------------"
print
length = input("Please input length")
width = input("Please input width")
area = length*width
print "the area is", area
elif shape == 2
print "Area of a Circle
print "---------------"
print
radius = input("Please input the radius")
area = (3.14*radius)radius
print "The area is", area
elif shape == 3
print "Area of a Triangle"
print "------------------"
print
length = input("Please input length")
width = input("Please input width")
area = .5(length*width)
print "The area is", area
elif shape == 4
print "Area of a Trapazoid"
print "-------------------"
print
length = input("Please input length")
b = input("Please input the first width")
c = input("Please input the second width")
area = .5length(b+c)
print "The area is", area
I can't figure out what's wrong either. :D
If I don't know what errors you get, I can't help you, although I do have a tip:
don't use input(), but use raw_input(), and then convert it to an int, like this:
int(raw_input()). Take a look here (http://www.ibiblio.org/obp/thinkCSpy/chap04.htm), part 4.12. It's a great book, btw.
it's alright, i found out whats wrong, i just forgot some :'s and *'s. Anyway I fixed it, and now it works fine. Ill check out that link anyway though, thanks!