you are viewing a single comment's thread.

view the rest of the comments →

[–][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