StopLoop.py
StopLoop.py
items = []
while True:
n = int(input("Enter a number: "))
if n==0:
break
items.append(n)StopLoop.py
items = []
while True:
n = int(input("Enter a number: "))
if n==0:
break
items.append(n)