Question: 8.) Write a function called beef_type that takes a single parameter, percent_lean. If the value of percentlean is less than 78%, return Hamburger. If it

8.) Write a function called beef_type that takes a single parameter, percent_lean. If the value of percentlean is less than 78%, return "Hamburger". If it is at least 78% and less than 85%, then return "Chuck". At least 85% but less than 90% return "Round". 90-95% inclusive return "Sirloin". If percent_lean doesn't fall within one of these ranges, - return "Unknown" Here are some examples of calling the function with different arguments. (The code executed is in blue, the value retdb th funcion isin green). beet type (91.2)>irloin Sirloin" beef type (78) --"Chuck" beef type (87) --"Round beef type (95.1 Unknown
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
