2 Matching Annotations
  1. Oct 2017
  2. Jun 2016
    1. Perhaps it would have been simpler just to count the lowercase-only items, but this gives the wrong answer (why?).

      this is because lowercasing all alphabetic items converts ALL alphabetic items to lowercase which includes items which are uppercase and which are lowercase.

      On the other hand, counting all lowercase-only items only finds items which are lowercase, thus the uppercase items are not counted (which were, in the 1st case). code - (set(word for word in text1 if word.islower()))