Skip to content

Instantly share code, notes, and snippets.

@fiberpython
Created October 30, 2017 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiberpython/df24c14c39dc5c7933c3d1aa9640867b to your computer and use it in GitHub Desktop.
Save fiberpython/df24c14c39dc5c7933c3d1aa9640867b to your computer and use it in GitHub Desktop.
My Next Gist
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)
@fiberpython
Copy link
Author

This should not work, But why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment