python 3 generating list code example
Example 1: number to list in python
# Declare a number
a = 12345
#Number to list
a_list = [int(x) for x in str(a)]
Example 2: python create list from range
intList = list(range(r1, r2+1))
# Declare a number
a = 12345
#Number to list
a_list = [int(x) for x in str(a)]
intList = list(range(r1, r2+1))