When I run the code in only returns the new list with only the min of the list it doesn't go throughtout the list to return other numbers in the list.
[CODE=python]
>>>def short(list2):
while len(list2) != 0:
new = []
loop = -1
a = min(list2)
for s in list2:
loop += 1
if s == a:
new.append(a)
list.pop(loop)
return list2[/CODE]
[CODE=python]
>>>def short(list2):
while len(list2) != 0:
new = []
loop = -1
a = min(list2)
for s in list2:
loop += 1
if s == a:
new.append(a)
list.pop(loop)
return list2[/CODE]
Comment