Created
October 30, 2017 05:49
-
-
Save fiberpython/df24c14c39dc5c7933c3d1aa9640867b to your computer and use it in GitHub Desktop.
My Next Gist
This file contains 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
string = 'vanillabeans' | |
char = 'a' | |
def findcount(datav,search): | |
count=0 | |
for x in datav: | |
if x == search: | |
count = count + 1 | |
"""print x""" | |
return count | |
findcount([1,3,5,7,23],7) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should not work, But why?