← Back to challenges

Splitting Up Numbers

PythonHardarraysnumbers

Instructions

Create a function that takes a number num and returns each place value in the number.

Examples

num_split(39) ➞ [30, 9]

num_split(-434) ➞ [-400, -30, -4]

num_split(100) ➞ [100, 0, 0]

Notes

N/A

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.