Level 3
Moderators: UncleTimmy, mjpieters
Enjoying the challenge? Need a hint?Make a donation and help keep the site running! -thesamet
More hints
HINT: When you are done, consider only the bodies ...
Re: Hint
nirs wrote:There is not need to replace newlines.
HINT: one re call can find all the letters for you
So you SHOULD replace the newlines and treat the whole block as one big string.
Re: Hint
jon_perez wrote:This is a confusing hint. Technically you can do it with one re call, but it will be an ugly regex.
So you SHOULD replace the newlines and treat the whole block as one big string.
Nope and nope. No need to remove the newlines, and the regexp wouldn't be any different anyway.
Re: Hint
K48 wrote:Hint: you will have TEN sequences of characters which match the condition. Take one small letter from each of the matches, and...
Hmm... I find only six.
Single regex, no newlines replaced, and the six occurrences I find all match the criteria...
Am I misinterpreting 'sides'? Does it include a character on the next line? (That gets me eight.) Or should I assume the edges of the text block wrap around as in Asteroids?
Thanks.
Return to Python Challenge Hints
Who is online
Users browsing this forum: chifu and 3 guests
