Guest User

Untitled

a guest
Feb 21st, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. word1 = "hello"
  2. word2 = "world"
  3.  
  4. tested = []
  5. for x in word2:
  6. if x in tested:
  7. continue
  8.  
  9. try:
  10. word1.replace(x, "", 1)
  11. except:
  12. continue
Add Comment
Please, Sign In to add comment