Write a python function to capitalize first letter of a string
Topic: Write a python function to capitalize first letter of a string
Solution
def capitalize(s, lower_rest = False): return ''.join([s[:1].upper(), (s[1:].lower() if lower_rest else s[1:])])
List all Python Programs