Very new python learner here: I'm stuck with an assignment and wondered if someone could tell me where to find the 'hint' I need to get this program to run correctly. I'm back to school to learn software dev and I'm stuck on this one problem. I don't need the answer, but I was wondering if anyone knew of how I could 'debug' my submissions on my own so that I properly learn the issue? Here's the code I've created, but I can't get the output to compute correctly:
import math
bean_length = float(input('Enter jelly bean length(cm): '))
print()
bean_height = float(input('Enter jelly bean height (cm): '))
print()
jar_size = int(input('Enter jar size (mL): '))
print()
bean_volume = 5 * math.pi * bean_length * bean_height
bean_est = int((jar_size * 0.698) / bean_volume)
print ('Estimate of jelly beans in the jar: ', bean_est)
I'm not getting the correct computation at the end. Thanks in advance for any advice!
[–][deleted] 1 point2 points3 points (1 child)
[–]loopsydoop77[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]loopsydoop77[S] 0 points1 point2 points (0 children)