Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
Count lower case characters in a string
DrMcCleod
Programming language:
Python
2021-05-07 04:31:53
0
Q:
Count lower case characters in a string
Pratik
Code:
Python
2021-06-23 11:42:56
def n_lower_chars(string): return sum([int(c.islower()) for c in string])
1
Tags
string
count
character
characters
Related
A tokenizer that converts the input string to lowercase and then splits it by white spaces
Python Program to count the number of lowercase letters and uppercase letters in a string.
tokenizer that converts the input string to lowercase and then splits it by white spaces
Count upper case characters in a string
python count characters in string
New to Communities?
Join the community