**大文字か小文字か調べる**
islower(),isupper()メソッドを使います。
>>> a='lower' >>> b='UPPER' >>> a.islower() True >>> b.islower() False >>> b.isupper() True