An operations analyst wants to calculate daily production to…
An operations analyst wants to calculate daily production totals using this function: python CopyEdit def total_output(daily_counts): total = 0 for count in daily_counts: total += count return total What does the function return when called as total_output([120, 135, 150, 110])? OPTIONS: 515B. 480C. 150D. 135 ANSWER: A EXPLANATION:The function adds all the numbers: 120 + 135 + 150 + 110 = 515. This demonstrates how loops inside functions can aggregate data efficiently.
Read Details