-
-
Save kalda341/c9c266e990a576b93777 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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