Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first_word = input()
- second_word = input()
- mutate_word = ''
- for i in range(len(first_word)):
- mutate_word = second_word[:i+1] + first_word[i+1:]
- if mutate_word != first_word:
- first_word = mutate_word
- print(first_word)
Advertisement
Add Comment
Please, Sign In to add comment