Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lista = [12,5,7,4,9,99,5,3,23,6,54,7,3,2,8,9]
- l = []
- k = 0
- while len(lista) > 0:
- for x in lista:
- for n in range(0,len(lista)):
- if lista[n] >= x:
- k += 1
- if k == len(lista):
- l.append(x)
- lista.remove(x)
- k = 0
- print(l)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement