# split a given int value in list
num = 13579
x = [int(a) for a in str(num)]
print(x)
number = "12345"
result = []
for digit in number:
result.append(digit)
print(result)
# result is ['1', '2', '3', '4', '5']
#can be done through regex library
import re
some_string = '31 Kaiser Friedrich Avenue'
#use the findall() method to find number within the string
#the ‘d+’ would help find digits
num = re.findall(r'd+', some_string)
print(num)
# result would be ['31']