Lowercase letter counter X59386


Statement
 

pdf   zip

html

Write a function low_let_counter(s) that returns the number of lowercase letters in string s. You can use the string method islower() to check whether given an string it has at least one letter and all its letters are lowercase letters. For instance, my_string.islower() is True when my_string is ’good morning’ or ’2 x 5’ or ’z’ and is False when my_string is ’Good morning’ or ’Z’ or ’123456’.

Sample session
>>> low_let_counter('The End')
4
>>> low_let_counter('Compute: 3 + 5')
6
>>> low_let_counter('66sixty_six66')
8
Information
Author
ProAl
Language
English
Official solutions
Python
User solutions
Python