# Given scores (a dictionary of name:score pairs), use a for loop with .items() to print only the name

Canonical URL: <https://datadriven.io/problems/given-scores-a-dictionary-of-namescore-pairs-use-a-for-l-9c562ccc>

Domain: Python · Difficulty: medium

## Problem

Given scores (a dictionary of name:score pairs), use a for loop with .items() to print only the names of students who scored 80 or above, one per line.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/given-scores-a-dictionary-of-namescore-pairs-use-a-for-l-9c562ccc)
- [Python Interview Questions](https://datadriven.io/python-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.