Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. def remove(lst, value):
  2.         curr = lst.head
  3.         i = 0
  4.         while not curr == None :
  5.             if curr.data == value:
  6.                 pop(lst, i)
  7.                 return True
  8.             curr = curr.next
  9.             i += 1
  10.         return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement