Skip to main content

Department Report

Challenge on lesson: Checkpoint: Collections + Control Flow

departments = {"sales": [120, 80, 150], "it": [200, 180]} is given (spending per month). Print each department and its total as sales: 350 / it: 380 — two lines. Then print the name of the department with the higher total: top: it

Difficulty: beginner

Back to lesson: Checkpoint: Collections + Control Flow