In this exercise, you will have to create a function named tiyFizzBuzz. This function will take on a string parameter and will return that string with some characters replaced, depending on the value:
- If a letter is a upper case consonants, replace that character with "Iron".
- If a letter is a lower case consonants or a non-alpha character, do nothing to that character
- If a letter is a upper case vowel, replace that character with "Iron Yard".
- If a letter is a lower case vowel, replace that character with "Yard".
Ready?
def translate(x): 
    if x.isupper(): 
        if x not in 'AEIOU': 
            return 'Iron'
        else: 
            return "Iron Yard"
    else: 
        if x not in 'aeiou' or not x.isalpha(): 
            return x
        else: 
            return 'Yard'

def tiy_fizz_buzz(string):
    return ''.join(translate(c) for c in string)
def translate(x): 
    if x.isupper(): 
        if x not in 'AEIOU': 
            return 'Iron'
        else: 
            return "Iron Yard"
    else: 
        if x not in 'aeiou' or not x.isalpha(): 
            return x
        else: 
            return 'Yard'

def tiy_fizz_buzz(string):
    return ''.join(translate(c) for c in string)