17
Last seen 1 year ago
Member for 7 years, 7 months, 6 days
Difficulty Normal
My first (ugly) try you can see here: https://py.checkio.org/mission/calls-home/publications/autodidact_ks/python-3/probably-the-unelegant-way/
I like the readability of code in this solution. Or e.g line 12, but is this pythonic?
I see some solutions using collections.defaultdict() ... i dont see
More
I don't get why text[offset:start-1:-1] doesn't work if start == 0. So the code is for an if-else-statement longer...
More
Hello,
i think you can save the replace(' ', '| |') by working with split(" ") and " ".join(...).
This should make the code more readable.
Many greetings
More