numbers = input("Enter the numbers: ")
count = {}
for i in numbers:
if i == '-100':
break
print('Done')
elif i in count:
count[i] +=1
else:
count[i] = 1
for key,value in count.items():
print(f'{key}:{value}')
I just don't understand how to use the 'break' to stop the loop. Can anyone helps me to fix that? thanks