hackerrank capitalize solution code example Example: hackerrank capitalize solution print ' '.join(word.capitalize() for word in raw_input().split(' '))