Last active
December 13, 2016 07:11
-
-
Save dimnikolos/38eeef71f01dc0084bd6f7e09a11ad7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s = input().strip() | |
print(len([x for x in s if x.isupper()]) + (1 if not s[0].isupper() else 0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Count words in camelCase string