s="23 3 45 6 7 8"
x=""
l=[]
for i in s:
    if(i!=" "):
        x=x+i
    else:
        l.append(x)
        x=""
l.append(x)
for i in l:
    print(i)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: