logo CodeStepByStep logo

convert_to_alt_caps

Language/Type: Python string return

Write a function named convert_to_alt_caps that accepts a string as a parameter and returns a version of the string where alternating letters are uppercase and lowercase, starting with the first letter in lowercase. For example, the call of convert_to_alt_caps("Pikachu") should return "pIkAcHu".

Function: Write a Python function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.