Question: Try submitting the program for grading ( click Submit mode, then Submit for grading ) . Notice that the first two test cases fail, but
Try submitting the program for grading click "Submit mode", then "Submit for grading" Notice that the first two test cases fail, but the third test case passes. The first test case fails because the program outputs the result from the kilotopounds function, which has an error. The second test case uses a Unit test to test the kilotopounds function, which fails.
Change the kilotopounds function to multiply the variable kilos by instead of dividing. The return statement should be: return kilos Submit again. Now the test cases should all pass.def kilotopoundskilos:
# This statement intentionally has an error.
return kilos
# Main part of the program starts here. Do not remove the line below.
if namemain:
kilos floatinput
pounds kilotopoundskilos
printfpounds:f lbs
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
