SyntaxFix
Write A Post
Hire A Developer
Questions
Recursion version:
def int_digits(n): return [n] if n<10 else int_digits(n/10)+[n%10]