fishbait

Untitled

Nov 17th, 2011
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def SymbleCounter(string,symbol):
  2.     """The 'symbol' has to be in the 'string'"""
  3.     x = "string"
  4.     count = 0
  5.     for char in 'x':
  6.         if char == 'symbol':
  7.             count = count + 1
  8.     print count
  9.  
  10.  
Advertisement
Add Comment
Please, Sign In to add comment