def decapitalize(str):
        return str[:1].lower() + str[1:]
      # decapitalize("FooBar") returns "fooBar"
      
      Python language logo

      Decapitalize string

      Python public recipes

      Shortcut: string.decapitalize

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.