Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions HackerRank-Camel Case/camelcase.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/python3

import math
import os
import random
import re
import sys

# Complete the camelcase function below.
def camelcase(s):
count=1
for i in s:
if i.isupper():
count+=1;
return (count)

if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')

s = input()

result = camelcase(s)

fptr.write(str(result) + '\n')

fptr.close()