Hello, I am new to python and would be glad if you assisted from time to time.
I want to write a function which will take one string argument containing characters between a-z, and should remove all repeated characters (duplicates) in the string.
The operation should return a new string with only unique, sorted characters as well as the total number of duplicates dropped.
Example: remove_duplicates('aaabbbac') => ('abc', 5)
Thank you.
I want to write a function which will take one string argument containing characters between a-z, and should remove all repeated characters (duplicates) in the string.
The operation should return a new string with only unique, sorted characters as well as the total number of duplicates dropped.
Example: remove_duplicates('aaabbbac') => ('abc', 5)
Thank you.