Algorithm · Ebay · Easy
You are given a list of single-character strings. Determine the difference between the number of uppercase letters and the number of lowercase letters. You must use the .isupper() and .islower() string methods, together with .count(), to compute the result. Examples Example 1 Explanation: There is 1 uppercase letter ('A') and 2 lowercase letters ('b', 'c'). The difference (uppercase count minus lowercase count) is 1 - 2 = -1. Example 2 Explanation: All 5 characters are…
Checking your access…