I observe unusual behavior with the methods islower()and .isupper()in Python. For instance:
>>> test = '8765iouy9987OIUY'
>>> test.islower()
False
>>> test.isupper()
False
However, the following mixed string value seems to work:
>>> test2 = 'b1'
>>> test2.islower()
True
>>> test2.isupper()
False
I do not understand this anomaly. How to define lowercase letters as in test?
source
share