Problem :

https://www.hackerrank.com/challenges/camelcase/problem


My Solution :

#!/usr/bin/env python3

def camelcase(s):
    ret = 1
    for c in s:
        if 65 <= ord(c) < 91:
            ret += 1
    return ret


s = input()
result = camelcase(s)
print(result)


My Solution2 :

#!/usr/bin/env python3

def camelcase(s):
    return sum(map(lambda c:c.isupper(), s)) + 1


s = input()
result = camelcase(s)
print(result)
secret