need help correcting! first day,first 2 hours, first python program,(only had a little dark basic)
active="on"
def ondamenu():
print ""
print "enter integer 1 or 2"
print ""
print "opt.1 find the circumference"
print "opt.2 find the radius"
print "opt.3 quit calculator.py"
print ""
return input ("enter your choice: ")
def whatsdaradius(circval):
pie=3.14159265358979323846264338327950288
total=circval/pie
print circval,"รท",pie," = ",total
def radius2pie(radval):
pie=3.14159265358979323846264338327950288
total=radval**2*pie
print radval,"^2","x",pie," = ",total
while active=="on":
print "welcome to circle pro calculator.py"
print ""
ondamenu()
option=ondamenu()
if option==1:
whatsdaradius(input(input("enter a circumference: "))
if option==2:
radius2pie(input("enter a radius (ie.half diametre): "))
if option==3:
active<>"on"
if option<>1 or option<>2 or option<>3:
ondamenu()
print "thank you!"
print ""
ts pretty readable, but its supposed to be a calculator for finding radius or circumference and loops with a while active is on