It's a question at the crossroads between computing and set theory
I just immersed myself in the Python documentation to answer this question
Let say $w$ is a string. What is the difference between the following two tests:
w.isupper ()andnot w.islower ()
For me, the difference is that, in mathematical terms, w.isupper () means
$$∀x ∈ w, x∈ Upper$$
not w.islower () means
$$∃ x ∈ w, x ∉ Lower$$
I do not know if it is enough for everyone to say that it is different, it is Set theory and, sometimes, I really need time to understand it. Also, there may be other computational or python reasons that I do not know
This question is from chapter 1 of Natural Language Processing with Python
w = a?b– Revolucion for Monica Aug 04 '18 at 10:19a?b? Consider posting further questions as seperate posts. – flawr Aug 04 '18 at 10:29a?bIt's a string, it's still the same question – Revolucion for Monica Aug 04 '18 at 10:34a?bmay be Python syntax for some string, but we're not Python experts enough to know which string that is ... – hmakholm left over Monica Aug 04 '18 at 10:55w = a?banda?bis a string, then so isw, and the answer is also the same. – flawr Aug 04 '18 at 13:25