Kata in python suggested by my friend Edorka.
I've to code a functional program in python that compress a string by replacing each line of repeated characters by the current char and the number of times it appear, this way: asssdff would become as3df2.
- I can't use array functions
- I can't use variables
- Each function must begin with a return statement
- I must apply TDD
$ nose2 --with-coverage