Advertisement
RedstoneHair

10. Mutate Strings

Sep 16th, 2022 (edited)
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. string_one = input()
  2. string_two = input()
  3.  
  4. last = string_one
  5.  
  6. for i in range(len(string_one)):
  7. string = string_two[0:i] + string_one[i:]
  8. if string == last: continue
  9. print(string)
  10. last = string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement