word = input('Enter the String\n')
character = input('Enter the Character\n')
if len(character) > 1:
    print('Invalid Character')
else:
    newString = ''
    for i in word:
        if i == character:
            newString = newString + i.upper()
        else:
            newString += i.lower()
    print(newString)

94826db936a24d98d7ef030677ac521bcd7c22a9
<mask token>

<mask token>
if len(character) > 1:
    print('Invalid Character')
else:
    newString = ''
    for i in word:
        if i == character:
            newString = newString + i.upper()
        else:
            newString += i.lower()
    print(newString)

word = input('Enter the String\n')
character = input('Enter the Character\n')
if len(character) > 1:
    print('Invalid Character')
else:
    newString = ''
    for i in word:
        if i == character:
            newString = newString + i.upper()
        else:
            newString += i.lower()
    print(newString)
