I have just got a strange result in following code.
mylist = [1,2,3,4,5,6,7,8,9,10]
for i in mylist:
mylist.remove(i)
print (mylist)
It generated [2, 4, 6, 8, 10] somehow. I would use "clear()" if I want to remove all. But, I am just interested in what is going on. Have I done something wrong for system preferenece? thank you for your help.