Files
30-seconds-of-code/test/decapitalize/decapitalize.py
2018-02-20 14:39:09 +05:30

2 lines
118 B
Python

def decapitalize(string, upper_rest=False):
return str[:1].lower() + (str[1:].upper() if upper_rest else str[1:])