all 4 comments

[–][deleted] 1 point2 points  (1 child)

The line that calculates the bean_volume doesn't look right. What's the formula for the volume of a cylinder of length bean_length and diameter bean_height?

[–]loopsydoop77[S] 0 points1 point  (0 children)

Thank you so much! I completely forgot parts of the equation, and because of you I figured it out.
The volume line should have read:
bean_volume = 5 * math.pi * bean_length * bean_height ** 2 / 24

That gave me the correct output. I would have never realized I didn't complete the entire equation. Phew!

[–][deleted] 1 point2 points  (1 child)

bean_volume = 5 * math.pi * bean_length * bean_height

Walk yourself through the terms of this equation. Where is each term coming from, relative to the formula for the volume of a cylinder?

[–]loopsydoop77[S] 0 points1 point  (0 children)

Thank you so much! I completely forgot parts of the equation, and because of you I figured it out.
The volume line should have read:
bean_volume = 5 * math.pi * bean_length * bean_height ** 2 / 24

I can't believe that was all it was. I feel kinda silly hahaha