list1=[1,2,3,2,2,1,1,1,1]
for i in list1:
if(i==min(list1)):
list1.remove(i)
print(list1)
ABOVE IS THE CODE WHICH IS WRITTEN IN A PYTHON TO SHOW MY PROBLEM .
As you can see in above code of python ,In a given list there is a 1 which is a minimum element in a list and it occurs 5 times in a list .I want a list in which all 1 should be absent ,So I used here a min function in a python to find a minimum element in a list and by using for loop I removed all minimum elements . But when I ran this code , output which was very unexpected to me was a list which still contains 1 .