Poulami Dutta
Nov 18, 2020

--

Photo by Etienne Boulanger on Unsplash

String Compression Problem - Solution in Python

Given an input string, write a function that returns the Run Length Encoded string for the input string.

For example, if the input string is ‘abbaa’, then the function should return ‘ab2a2’.

--

--

Poulami Dutta

Software Developer Engineer (Python Developer, Ex-ISRO)