Matblinx

Nose que poner

Jun 1st, 2021
718
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def filtrar(original, eliminar):
  2.     i = 0
  3.     kill = 0
  4.     contador = 1
  5.     while len(eliminar) > i:
  6.         if eliminar[i] in original:
  7.             ii = 0
  8.             iii = eliminar[i]
  9.             iii = original.count(iii)
  10.             while iii > ii:
  11.                 original.remove(eliminar[i])
  12.                 ii += 1
  13.         i = i + 1
  14.     while len(original) > contador:
  15.         if original:
  16.             kill = original[i]
  17.             ii = original.count(kill)
  18.             i = 1
  19.             while ii > i:
  20.                 original.remove(kill)
  21.                 i += 1
  22.         contador += 1
  23.     return original
RAW Paste Data