Skip to content

Instantly share code, notes, and snippets.

@peroon
Created March 31, 2017 03:22
Show Gist options
  • Select an option

  • Save peroon/dc322d5f53a94383a6ac5397e8cacaff to your computer and use it in GitHub Desktop.

Select an option

Save peroon/dc322d5f53a94383a6ac5397e8cacaff to your computer and use it in GitHub Desktop.
>>> s = 'abacde'
>>> s.count('a')
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment