Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- word = input()
- new_word = input()
- while word[-1] == new_word[0]:
- word, new_word = new_word, input()
- print(new_word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement