Guest User

Untitled

a guest
Oct 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. def eliminarEnLista(L):
  2. n=int(raw_input("Ingrese el numero que desea eliminar de la lista: "))
  3. L=[]
  4. i=0
  5. while i <len(L):
  6. for cont in L[i]:
  7. if cont <=L[i]:
  8. continue
  9. if cont==n and cont==L[i]:
  10. L.remove(i)
  11. else:
  12. pass
  13. i+=1
  14.  
  15. return L
Add Comment
Please, Sign In to add comment