Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def reparar (cabeza, x, correccion):
- if self.getvacio() == True:
- print ("no hay nada en la lista")
- else:
- temp = cabeza
- validar = True
- while (validar):
- if temp.data == x:
- x = x + correccion
- temp.data = x
- elif temp.next == None:
- validar = False
- else:
- temp = temp.next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement