Compress String Using Python

# Introduction In this Python challenge, we will be compressing a string by replacing repeated characters with a count of the repetition. The compressed string will only be returned if it saves space.

|60 : 00

Click the virtual machine below to start practicing