Print the Marks
Python
15 pts
Print the Marks
Use the dictionary below:
marks = {"Selam": 88, "Abel": 74, "Merhawi": 91}
- Loop with
items()and print each student asName: mark. - Inside the same loop, add each mark to a variable called
total(start it at 0). - After the loop, print
Total:followed by the total.
Expected output:
Selam: 88 Abel: 74 Merhawi: 91 Total: 253
Checklist
- Loop through
marksand add each mark tototal. - Print each student as
Name: mark, then the total.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
