Write a python function to decapitalize the first letter of user provided string.


Topic: Write a python function to decapitalize the first letter of user provided string.

Solution

def decapitalize(s, upper_rest = False):
  return ''.join([s[:1].lower(), (s[1:].upper() if upper_rest else s[1:])])



List all Python Programs