Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1.  
  2.  
  3. def n_count(request_string):
  4. count = 0
  5. for letter in request_string:
  6. if letter == "n":
  7. count = count + 1
  8.  
  9. print count
  10.  
  11. n_count("This is some string")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement