Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- word = input("Please Enter text : ")
- sum_ = 0
- for chr_ in word:
- if(ord(chr_) in range(ord("A"), ord("Z")+1)):
- sum_ += 1
- print(sum_)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement