Sign up for Free !!
World's first open source developer community with
Ticketing System
Write Python logic to count the number of capital letters in a file.
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)
Please Login/Register to write your answer !!!