Python Program: Run-Length Encoding

Prompt

Result