# Given prices = [5, 10, 15, 20, 25], loop through each price and append it to a new list called doubl

Canonical URL: <https://datadriven.io/problems/given-prices-5-10-15-20-25-loop-through-each-price-55f7ac01>

Domain: Python · Difficulty: medium

## Problem

Given prices = [5, 10, 15, 20, 25], loop through each price and append it to a new list called doubled where each value is price * 2. Print doubled.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/given-prices-5-10-15-20-25-loop-through-each-price-55f7ac01)
- [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.