You've learned how to loop over a dictionary's key–value pairs with .items(). Let's use it.
You're given a dict of scores. Loop over it and print each pair on its own line.
Your tasks
Start with this dict:
scores = {"math": 90, "science": 85}
1. Loop over scores using .items()
2. For each pair, print it in the format "key: value" (for example, math: 90)
Expected output
Constraints
- Use a
for loop with .items()
- Convert the value to a string with
str(...) before joining it with +
- No external libraries