Debugging Activity
Function Problem 1

 


Corn in an Elevator

Brock O'Lee runs the grain elevator in Arrow Smith, Missouri. Corn is sold by the "bushel" but they don't actually measure the volume. Instead, the standard weight of 56 pounds per bushel is applied.

Write a Python function that conforms to the following

 

 

Consider the following function to solve this problem

 

Right now if you run it with the example provided above it runs just fine. But it fails when submitted for testing.

Why?

You can watch the appropriate code-walkthrough video to see how I would answer this question.