Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def indx(cell, x, n):
- return indx(cell.tail, x, n + 1)
- if self.value == x:
- return n
- elif self.is_empty():
- return None
- else:
- return indx(self, x, n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement