Skip to content

Instantly share code, notes, and snippets.

@kalda341
Created February 4, 2015 07:49
Show Gist options
  • Save kalda341/c9c266e990a576b93777 to your computer and use it in GitHub Desktop.
Save kalda341/c9c266e990a576b93777 to your computer and use it in GitHub Desktop.
def find(lis, item, first):
if first == len(lis):
return -1
elif lis[first] == item:
return first
return find(lis, item, first + 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment