Write Python logic to count the number of capital letters in a file.

Submitted 3 years, 5 months ago
Ticket #302
Views 232
Language/Framework Python
Priority Low
Status Closed

Write Python logic to count the number of capital letters in a file.

Submitted on Nov 16, 20
add a comment

1 Answer

Verified

string=raw_input("Enter string:")
count=0

for i in string:    
     if(i.isupper()):
            count0=count0+1
print("The number of uppercase characters is:")
print(count0)

Submitted 3 years, 5 months ago


Latest Blogs