Capital letter counter

Write a function @cap_let_counter(s)@ that returns the number of capital
letters in string s. You can use the string method @isupper()@ to check
whether given an string it has at least one letter and all its letters
are capital letters. For instance, @my_string.isupper()@ is True when
@my_string@ is ’HELLO’ or ’1X2’ or ’G’ and is False when @my_string@ is
’He7TO’ or ’x’ or ’123456’.

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T19:28:01.127Z

© Jutge.org, 2006–2026.
https://jutge.org
