If you write like
n = str(input()) n = n.split() print(n)
That will work. But if you try to do it with integers, you will get
You can do that like this,
n = 567 a = str(n).split(YOUR DELIMITER)
Like if YOUR DELIMITER = 6, Then if i print(a) then i get,
print(a)
['5', '7']