b = {} b[1] = 0 c = 0 for k in b.keys(): if c < 10: b[c] = 1 c += 1 print(b)
Standard input is empty
Standard output is empty
Traceback (most recent call last):
File "prog.py", line 4, in <module>
for k in b.keys():
RuntimeError: dictionary changed size during iteration