Ответ:
Объяснение:
def count_uppercase_letters(text):
count = 0
for char in text:
if char.isupper():
count += 1
return count
text = "This TEXT has SOME UPPERCASE letters."
count = count_uppercase_letters(text)
print("There are", count, "uppercase letters in the text.")
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Объяснение:
def count_uppercase_letters(text):
count = 0
for char in text:
if char.isupper():
count += 1
return count
text = "This TEXT has SOME UPPERCASE letters."
count = count_uppercase_letters(text)
print("There are", count, "uppercase letters in the text.")