Matching String
Lesson 6 of 12 in Coddy's Python Interview Series course.
Challenge
EasyWrite 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 hereAll lessons in Python Interview Series
1Crack Python Coding Interview
Lesser of two evensPangram Unique ElementsAnimal CrackersSpy GameMatching StringPalindrome or NotBlackJackFind DuplicatesEncodeHash 33First Non-Repeating Character