#l=[int(i) for i in input().split()]
try:
    l=[]
    while True:
        l.append(int(input()))
except:
    print(l)

Embed on website

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