Convert string to camelCase in Python
Wed, 24 June 2020
example.py
def camel_case(word): """ :param str word: :rtype: str """ w = ''.join(x.capitalize() or ' ' for x in word.split(' ')) w.replace(w[0], w[0].lower()) w = w[0:1].lower() + w[1:] return w