I have a project due and cannot get the while loop to run correctly. Any help would be appreciated. I am not a programmer yet and dont even know Python, our class is supposed to learn it on the fly? Her is some of the code, any help would be appreciated. The loop never prints or stops?
Height = input("Enter the height the golf ball is dropped fromin feet:") while Height <= 0: print"cannot compute for a negative number" Height = input("Enter the height the golf ball is dropped fromin feet:")
print""" What surface was the golfball dropped on. Choose from the list: 1) concrete 2) wood 3) rug """ surface = raw_input("Enter the surface type [1,2,3]:") count = 0 H = Height TH = .083 print count if surface == '1': while H >= TH: count = count + 1 H = Height * .85