Advertisement
Spocoman

08. Mutate Strings

Jan 14th, 2022 (edited)
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. first_str = list(input())
  2. second_str = list(input())
  3.  
  4. for i in range(len(first_str)):
  5.     if first_str[i] != second_str[i]:
  6.         first_str[i] = second_str[i]
  7.         print(''.join(first_str))
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement