Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # string_count.py -- Counts the number of characters in a given string
- from string import *
- demo = "The letter 'i' repeated in this sentence = "
- print demo+str(demo.count('i'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement