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 274 views
1 answer 263 views
1 answer 245 views
1 answer 254 views
1 answer 247 views
1 answer 284 views
...