Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def n_count(request_string):
- count = 0
- for letter in request_string:
- if letter == "n":
- count = count + 1
- print count
- n_count("This is some string")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement