# initializing string test_str = "Grepper Answer" # using count() to get count # counting e counter = test_str.count('e') >> 3
# using count() to get count # counting e counter = test_str.count('e')
# Count number of characters in a string (word) a = "some string" print len(a) # 11
str1.count("a")
a = "some string" print (len(a)) # 11