l=input('Enter elements of a list separated by space ')
l=l.split()
print(l)
باید اعداد را پشت سر هم اما با یک فاصله(space) وارد کنیم