Monday, 11 January 2016

27. Count the letters

print ('Copy and paste a text here:')
text = input ()

a = 0
while a < 10:

    print ('Choose the letter of letter group you want to count')
    letter = input ()

    a =  text.count(letter)
    print (a)