String Transformation Functions

  • Share this:

Code introduction


This function takes three arguments, processes them to uppercase, lowercase, and title case respectively, and returns a tuple containing the three processed results.


Technology Stack : Built-in functions: upper(), lower(), title()

Code Type : Function

Code Difficulty : Intermediate


                
                    
def aaaa(arg1, arg2, arg3):
    def aaa(arg1):
        return arg1.upper()

    def bbb(arg2):
        return arg2.lower()

    def ccc(arg3):
        return arg3.title()

    return aaa(arg1), bbb(arg2), ccc(arg3)