How to determines whether a character is a lowercase in Python

1 Answer

0 votes
ch = 'A'
if ch.islower():
    print("yes")
else:
    print("no")

ch = 'a'
if ch.islower():
    print("yes")
else:
    print("no")


'''
run:

no
yes

'''

 



answered Dec 7, 2016 by avibootz

Related questions

1 answer 183 views
1 answer 163 views
1 answer 152 views
1 answer 153 views
1 answer 136 views
1 answer 173 views
...