Is there a way to achieve this in python? : # I would like to create a function like:

    def test(x, way='a'):
        'a' = capitalize()
        'b' = lower()
        return x.way()
# And where if I run:

    test('ASD', way='b')

# The ouput should be:

    'asd'
# Thanks in advance to all of you
