Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 494 Bytes

Break_camelCase.md

File metadata and controls

40 lines (22 loc) · 494 Bytes

CodeWars Python Solutions


Break camelCase

Definition

Complete the solution so that the function will break up camel casing, using a space between words.

solution("camelCasing")  ==  "camel Casing"

Given Code

def solution(s):
    pass

Solution

def solution(s):
    return "".join([" " + c if c.isupper() else c for c in s])

See on CodeWars.com