Oct-02-2017, 09:05 PM
In trying to diagnose a problem with my code, I have traced the problem to the following result, which makes no sense to me. I was wondering if somebody could make sense of the problem:
When I evaluate the third and final condition by itself without the first two, it evaluates to False:
'2'.isupper() == False & '2'.islower() == False & '2'.isdigit() == False:
Output:True
Shouldn't this evaluate to False, since the third and final condition ('2'.isdigit() == False) is False?When I evaluate the third and final condition by itself without the first two, it evaluates to False:
'2'.isdigit() == False
Output:False