String that consists multi-time occurring chars

In this program, we will take a string as input and create a string that consists of multi-time occurring characters in the said string.

Steps to solve the problem
  1. Take a string as input.
  2. From collections import counter to count the occurrences of the characters in the given string.
  3. Print only those characters who have occurred more than once.

Output :

remove all consecutive duplicates of a given string

create a string from two given strings combining uncommon characters of the said strings.  

Leave a Comment