← Back to challenges

Buggy Uppercase Counting

PythonHardlanguage_fundamentalsbugsarrays

Instructions

In the Code tab is a function which is meant to return how many uppercase letters there are in a list of various words. Fix the list comprehension so that the code functions normally!

Examples

count_uppercase(["SOLO", "hello", "Tea", "wHat"]) ➞ 6

count_uppercase(["little", "lower", "down"]) ➞ 0

count_uppercase(["Innokodakademija", "Educate", "Coding"]) ➞ 3

Notes

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Expensive Orders