Hey I'm trying to create an infinite list in python that takes user input in till 0 is entered, I don't really know if this is the right way to do so, here's what I did:
`n = input("Enter a list element separated by space ")
while n == 0:
break
else:
list = n.split()
print(list)`
Thank you!