@@ -0,0 +1,1236 @@
+#!/usr/bin/env python3.6%0A%22%22%22Jerod Gawne, 2017-10-13%0A%0ACapitalize%0A%0Ahttps://www.hackerrank.com/challenges/capitalize%0A%0AEditorial:%0AThis can be solved using split, join and capitalize.%0A%0Aprint ' '.join(word.capitalize() for word in raw_input().split(' '))%0A%0ASample Input:%0Ahello world%0A%0ASample Output:%0AHello World%0A%22%22%22%0A%0A%0Adef capitalize(string):%0A    %22%22%22Jerod Gawne, 2017-10-13%0A%0A    print(input().title()) will not work because the question is%0A    asking to capitalise firse letter of each word keeping in mind%0A    that %22if it is a letter%22. Title and Capitalise are different in function as:%0A    'abcd'.title() results in 'Abcd' but%0A    '12abcd'.title() results in '12Abcd'. This is not what we want.%0A    We just want to capitalise first letter of each word, not the first occuring letter of a word.%0A%0A    credit: https://www.hackerrank.com/challenges/capitalize/forum/comments/99491%0A%0A    :param string:%0A    :return:%0A    %22%22%22%0A    return ' '.join((word.capitalize() for word in string.split(' ')))%0A%0A%0Adef main():%0A    %22%22%22%0A    Main/Tests%0A    %22%22%22%0A    print(capitalize(input()))%0A%0A%0Aif __name__ == '__main__':%0A    try:%0A        main()%0A    except Exception:%0A        import sys%0A        import traceback%0A%0A        print(traceback.print_exception(*sys.exc_info()))%0A

add 12_capitalize.py