On 12/11/2020 00:45, Bischoop wrote:
I see now I overcomplicated it, what is a good idea then?
This is a variation on a data-compression technique called RLE=Run-Length Encoding (excepting that in this case there is no need to count the repetitions).
Web.Ref: https://stackabuse.com/run-length-encoding/ -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list