Closed alexmojaki closed 5 years ago
Good idea. But instead of string[:left], string[-right:]
you can just do string[:left], string[left:]
and not calculate right
, right?
They will be different if (max_length - 3)
is odd. The -3
is not very important either. It's a perfectionist function. If you prefer I can simplify the function and let it be a few characters off.
They will be different if
(max_length - 3)
is odd.
Oops, I tried to be clever and made a basic mistake :)
In general there may be useful information at the end of a variable. This also solves the problem in #73