Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. def reparar (cabeza, x, correccion):
  2. if self.getvacio() == True:
  3. print ("no hay nada en la lista")
  4.  
  5. else:
  6. temp = cabeza
  7. validar = True
  8. while (validar):
  9. if temp.data == x:
  10. x = x + correccion
  11. temp.data = x
  12.  
  13. elif temp.next == None:
  14. validar = False
  15.  
  16. else:
  17. temp = temp.next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement