Advertisement
kalinx

mutate strings

Jan 14th, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. first = input()
  2. second = input()
  3. for i in range(len(first)):
  4.     if first[i] != second[i]:
  5.         first = first[: i] + second[i] + first[i+1 :]
  6.         print(first)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement