← Back to the lesson: Dictionaries
Loop Through Dictionary
The exercise
Given: scores = {"Math": 90, "English": 85, "Science": 95}
Print each subject and score in format:
"Math: 90"
"English: 85"
"Science: 95"
Starter code
scores = {"Math": 90, "English": 85, "Science": 95}
# Print each subject and score / Выведите каждый предмет и оценку
Write the code in the browser and run it — no installation needed.