Python提供了isupper(),islower(),istitle()方法用来判断字符串的大小写。

strings = {'cad', 'PE ', 'Window', 'FM', 'hello', 'world','flowers'}
n=0
for word in strings:
    if word.islower:
        n += 1
print(n) 

python 判断字母大小写_Python教程