Menu
Coddy logo textTech

Matching String

Lesson 6 of 12 in Coddy's Python Interview Series course.

challenge icon

Challenge

Easy

Write a function myFunc that takes in a string,

and returns a matching string where every even letter is uppercase, and every odd letter is lowercase.

  • a1 - string

And outputs boolean, which is True if the above condition matches otherwise False


Example:

Input - aNiMaL

Expected Output - True

 

Try it yourself

def myFunc(a1):
    # Write code here

All lessons in Python Interview Series