blob: 004220769797f6c4e941716baa1b836a69214d52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
def max_run_uppercase(test_str):
cnt = 0
res = 0
for idx in range(0, len(test_str)):
if test_str[idx].isupper():
cnt += 1
else:
res = cnt
cnt = 0
if test_str[len(test_str) - 1].isupper():
res = cnt
return (res)
|