manifesto42.com
Remove repeated adjacent characters from string
Given a string like: “aabbdeeeef” or “bbbbbbb” we want to output: “abdef” and “b” respectively. here are a few ways to do it in Python: