I just started Python and im reading a how to ( http://hetland.org/writing/instant-hacking.html ) and im trying to get this coding to work and it seems to be working fine except it wont let me put in 1 or 2 to chose wat i want circle or triangle wat the coding does is calculate the area of a circle or triangle y cant i get it to take the input and calculet it heres the coding
print "welcome"
print "chose 1=tri 2=cir"
shape=input(">")
if shape == 1:
height = input()
width = input()
area = input()
print "area=", area
else:
radius = input()
area = 3.14*(radius**2)
print "area2=", area
Im using SPE but i tried it in DrPython and IDLE
please help i really want to proggram
Another ? - the mark how do i get to Pygame i already installed it but its not under proggraming or any thing please help
Bookmarks