def replace(char, word1, word2):
    new_word = ''
for c1, c2 in zip(word1, word2):
    if c1 == char:
        new_word += char
else:
    new_word += c2
return new_word
Replacing characters from string one to string two