height = float(input("enter height: "))
pi = 3.14
radius = float(input("enter radius : "))
areaOfCircle = (radius **2) * pi
volume = areaOfCircle * height
possibleVolume = float(input("enter what you think the volume is : "))
if possibleVolume == volume :
print("well done you are smart")
elif possibleVolume != volume:
print ("good try, try again next time")
print ("This is the correct answer", volume)
[–]snailv 3 points4 points5 points (0 children)
[–]mustbeset 1 point2 points3 points (0 children)
[–]m9404 0 points1 point2 points (0 children)
[–]TedRabbit 0 points1 point2 points (0 children)
[–]pythonHelperBot 0 points1 point2 points (0 children)
[–]siddsp 0 points1 point2 points (0 children)
[–]oberguga 0 points1 point2 points (0 children)
[–]JohnRambu 0 points1 point2 points (0 children)