You are viewing a single comment's thread. Return to all comments →
Simply python3 solution:
s = str(input()) i = 0 while i < len(s)-1: if s[i]==s[i+1]: s = s[:i] + s[i+2:] i = 0 else: i += 1 print(s if s else 'Empty String')
Seems like cookies are disabled on this browser, please enable them to open this website
Super Reduced String
You are viewing a single comment's thread. Return to all comments →
Simply python3 solution: