Level 4
Moderators: UncleTimmy, mjpieters
Enjoying the challenge? Need a hint?Make a donation and help keep the site running! -thesamet
64 posts
• Page 4 of 5 • 1, 2, 3, 4, 5
now what?
i already got "Divide by two and keep going" this reply ...
well i implemented it still 10 min no response...!!
Some times i get IOSocket error.... which which is bcoz of my internet problems.....!!......
Shall i keep waiting or change direction of code ????
well i implemented it still 10 min no response...!!
Some times i get IOSocket error.... which which is bcoz of my internet problems.....!!......
Shall i keep waiting or change direction of code ????
I don't get it
I just can't figure this one out.
I keep putting in the next nothing until I get to divide by 2. I then divide the next nothing by 2, enter it, then continue entering the next nothings not dividing by 2. Eventually I get into a loop.
I also get into a loop if I divide the number before divide by 2 and enter it in.
I get into a loop if I keep dividing the next nothings after divide by 2 by 2.
I get into a loop if I never divide by 2
So now I'm just scanning every number possible starting at 1 and printing if I get something other than 'and the next nothing is' because I'm out of ideas. What else have I not tried?
edit: n/m, I just kept passing over the answer and not realizing it.
I keep putting in the next nothing until I get to divide by 2. I then divide the next nothing by 2, enter it, then continue entering the next nothings not dividing by 2. Eventually I get into a loop.
I also get into a loop if I divide the number before divide by 2 and enter it in.
I get into a loop if I keep dividing the next nothings after divide by 2 by 2.
I get into a loop if I never divide by 2
So now I'm just scanning every number possible starting at 1 and printing if I get something other than 'and the next nothing is' because I'm out of ideas. What else have I not tried?
edit: n/m, I just kept passing over the answer and not realizing it.
Freakbuffet18 wrote:Hey, does anyone know if there a way to do this one with visual basic, thats the only language i know in any substantial amount so far... i'm not sure how to get the number from the page to the url yet...
You'll need to use System.Net and the HttpWebRequest if you want to use VB. But try to learn the Python, you'll need it for the next challenge.
Re: Level 4
Hi,
I have been trying to get the solution for this one, got the divide by 2 and keep going. altho I got a total of 400 numbers, I tried to use the 400th number as the solution and even the 399th number as address/<number>.html or even .php and doesnt seem to work.
dont know what I havent read or figure out to complete the problem. Comments?
I have been trying to get the solution for this one, got the divide by 2 and keep going. altho I got a total of 400 numbers, I tried to use the 400th number as the solution and even the 399th number as address/<number>.html or even .php and doesnt seem to work.
dont know what I havent read or figure out to complete the problem. Comments?
Re: Level 4
what happened is that I though the divide by 2 was in a fixed position, but it wasnt, looks like every time follow the link it goes to different numbers but it always reach the same end
better to manually set up the new number or a regex to recognize the phrase.
regards and keep going!
better to manually set up the new number or a regex to recognize the phrase.
regards and keep going!
Re: Level 4
I attempted this problem using version 3.1.1 of python how ever i think there must be a bug because the code line i get the following error. end="".join (re.findall (r"nothing is (\d+)",text))
File "/usr/lib/python3.1/re.py", line 192, in findall
return _compile(pattern, flags).findall(string)
TypeError: can't use a string pattern on a bytes-like object
how ever this same code ran on a previous version of python worked perfectly. i used version 2.6 to make it work. is there a way to get this to work using version 3.1.1?
File "/usr/lib/python3.1/re.py", line 192, in findall
return _compile(pattern, flags).findall(string)
TypeError: can't use a string pattern on a bytes-like object
how ever this same code ran on a previous version of python worked perfectly. i used version 2.6 to make it work. is there a way to get this to work using version 3.1.1?
Re: Level 4
Fixed that last thing: it was my own stupidity... >.> For future reference, don't name your file the same name as a library you're importing IN the file...
I think I've got this now... just gotta wait for things to finish what they are doing I guess.
I think I've got this now... just gotta wait for things to finish what they are doing I guess.
Re: Level 4
It's easier in retrospect!
My hint for you: split each next nothing
My hint for you: split each next nothing
Re: Level 4
I have gotten into an infinite loop after dividing by 2.
I print out the entire read from the url, I also print out what value I parse (using re) from that text.
I have read every line up to 400 and I can not find where I am going wrong. This infinite loop is killing me!
I print out the entire read from the url, I also print out what value I parse (using re) from that text.
I have read every line up to 400 and I can not find where I am going wrong. This infinite loop is killing me!
Re: Level 4
Hi. I've written pretty little script which can go through pages, one by one. Maybe I just have to wait (30, 40, 60 minutes) and let it do its job, but it doesn't look optimally. How did you solve this problem? Is there any better way?
64 posts
• Page 4 of 5 • 1, 2, 3, 4, 5
Return to Python Challenge Hints
Who is online
Users browsing this forum: No registered users and 4 guests
