mfgnik

Untitled

Apr 15th, 2020
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. s = list(input())
  2. result = []
  3. for x in s:
  4.     if not result or x != result[-1]:
  5.         result.append(x)
  6. print(*result, sep='')
Advertisement
Add Comment
Please, Sign In to add comment