num = 1234
return [ int(x) for x in str(num) ]
Convert num to str, iterates and converts each int to str and adds to a list.
num
str
int