Given prices = [5, 10, 15, 20, 25], loop through each price and append it to a new list called doubl
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- 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.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.