Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input()
- result = text[0]
- for ch in text:
- if ch == result[-1]:
- continue
- result += ch
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement