FAQ  •  Login

Level 3

Moderators: UncleTimmy, mjpieters

Enjoying the challenge? Need a hint?
Make a donation and help keep the site running! -thesamet
<<

thesamet

Python Challenge Leader

Posts: 69

Joined: Thu Apr 28, 2005 11:02 pm

Post Fri Apr 29, 2005 2:17 pm

Level 3

Hint 1: Case sensitivity

Hint 2: import re

Hint 3: exactly three
<<

avital

Posts: 1

Joined: Fri Apr 29, 2005 9:58 am

Post Fri Apr 29, 2005 2:47 pm

More hints

:idea:

HINT: When you are done, consider only the bodies ...
<<

Dan

Posts: 63

Joined: Sun May 01, 2005 3:09 pm

Post Sun May 01, 2005 3:15 pm

Hint: replace("\n", "")
<<

nirs

Posts: 6

Joined: Tue May 03, 2005 6:30 pm

Post Tue May 03, 2005 7:02 pm

Hint

There is not need to replace newlines.

HINT: one re call can find all the letters for you
<<

reflog

Posts: 3

Joined: Wed May 04, 2005 7:20 am

Post Wed May 04, 2005 7:21 am

heelp!

bummer. doesn't work :(
i've wrote the correct expressions (atleast i think so...)
tried with new lines and without them...
any suggestions?
<<

josephgrossberg

Posts: 1

Joined: Wed May 04, 2005 11:09 am

Post Wed May 04, 2005 11:11 am

and then?

correction:

If you copy and paste into emacs via puTTY, it can interpret the character sequences oddly.

FYI.
<<

Amaranth

Posts: 2

Joined: Thu May 05, 2005 1:45 am

Post Thu May 05, 2005 1:47 am

I've got the string and I've tried every combination of it but I can't get to the next round.
<<

mjpieters

Site Admin

Posts: 172

Joined: Wed May 04, 2005 8:56 am

Location: Norway

Post Thu May 05, 2005 4:13 am

Amaranth wrote:I've got the string and I've tried every combination of it but I can't get to the next round.


If it is the right word you've found, just apply it like you did with the previous rounds; put it in the URL. If it doesn't work (if you got a 'Not Found' response) you did something wrong.
<<

Amaranth

Posts: 2

Joined: Thu May 05, 2005 1:45 am

Post Thu May 05, 2005 4:43 am

Can I pm you the string so you can see if I got it right?
<<

vim

Posts: 2

Joined: Thu May 05, 2005 4:34 pm

Post Thu May 05, 2005 4:35 pm

The problem is underspecified. I get about 500 characters for the letters. Trying all a-z.html I get y.html and l.html. Is it really a 500 char nonsense string?
<<

vim

Posts: 2

Joined: Thu May 05, 2005 4:34 pm

Post Thu May 05, 2005 4:50 pm

vim wrote:The problem is underspecified.
Meh. Nevermind.
<<

K48

Posts: 7

Joined: Fri May 06, 2005 2:06 pm

Post Fri May 06, 2005 2:13 pm

Hint

Hint: you will have TEN sequences of characters which match the condition. Take one small letter from each of the matches, and... ;)
<<

jon_perez

Posts: 1

Joined: Sat May 07, 2005 12:11 pm

Post Sat May 07, 2005 12:13 pm

Re: Hint

nirs wrote:There is not need to replace newlines.

HINT: one re call can find all the letters for you
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.
<<

mjpieters

Site Admin

Posts: 172

Joined: Wed May 04, 2005 8:56 am

Location: Norway

Post Sat May 07, 2005 1:07 pm

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.
<<

deadnancy

Posts: 3

Joined: Sat May 07, 2005 2:53 pm

Post Sat May 07, 2005 3:15 pm

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.
Next

Return to Python Challenge Hints

Who is online

Users browsing this forum: Google [Bot] and 12 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.