duikboot

Untitled

Nov 18th, 2011
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. >>> x = "stringg"
  2. >>> x.count('g')
  3. 2
  4. >>> x.count('gg')
  5. 1
  6. >>> a = "i"
  7. >>> x.count(a)
  8. 1
  9. >>> x.count('rr')
  10. 0
Advertisement
Add Comment
Please, Sign In to add comment