Buggy Uppercase Counting

Published by Mubashir Hassan in

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

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

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

counUppercase(["EDAbit", "Educate", "Coding"]) ➞ 5

Notes

Check the Resources for some array methods that might be helpful.

Watch a quick demo on how Edabit works.