Part 1 was easy. Part 2 would have been quicker in Python or another language I'm more comfortable with. Due to some clumsy debugging, I managed "off by one" errors in both directions.
CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.