← Back to challenges

Multiply Every List Item by Two

PythonMediumarrayslanguage_fundamentals

Instructions

Create a function that takes a list with numbers and return a list with the elements multiplied by two.

Examples

get_multiplied_list([2, 5, 3]) ➞ [4, 10, 6]

get_multiplied_list([1, 86, -5]) ➞ [2, 172, -10]

get_multiplied_list([5, 382, 0]) ➞ [10, 764, 0]

Notes

N/A

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Fix the Error: Mutating Arrays