How to Convert an Int to a List of Ints in Python
The challenge
Given a non-negative integer, return an array / a list of the individual digits in order.
Examples:
The solution in Python code
Option 1:
Option 2:
Option 3:
Test cases to validate our solution
|
|