Page 1 of 1

Python Challenge

Posted: Mon Aug 23, 2010 4:47 pm
by Amy
Can anyone beat this?

http://www.pythonchallenge.com/


it's actually pretty fun.

Re: Python Challenge

Posted: Tue Aug 24, 2010 1:25 am
by tokage
Got past first, but I have no idea about actual python. :/

Re: Python Challenge

Posted: Tue Aug 24, 2010 1:57 am
by draconic74
Second is simply a shifted alphabet cipher. A->C, B->D, and so on. Not gonna take the time right now to solve it, but I'll look into it later. I assume the idea is to write a program to solve it? If so then I can only solve these on paper and calculator for so long. We shall see...

Re: Python Challenge

Posted: Tue Aug 24, 2010 4:14 am
by TaxiService
^ what he said.

Re: Python Challenge

Posted: Tue Aug 24, 2010 7:45 pm
by (KHC) Shadow
Perhaps you should write a python program to solve this.. :D

Re: Python Challenge

Posted: Tue Aug 24, 2010 10:44 pm
by draconic74
(KHC) Shadow wrote:Perhaps you should write a python program to solve this.. :D
Thats the point, really. I'll do it eventually, or end up solving it all by hand if need be.

Re: Python Challenge

Posted: Tue Aug 24, 2010 10:49 pm
by TaxiService
^ hah. :P for the second one would you use something like "for char, index in string, char == string.lowercase[index] + 4", or would you map all the characters one by one? o_o

DISCLAIMER: that code is just a draft!

Re: Python Challenge

Posted: Wed Aug 25, 2010 9:07 pm
by (KHC) Shadow
I just did:

for (i = 0; i < string.length; i++)
{
newString.appendCharacter(string.character(i) + 2)
}

Re: Python Challenge

Posted: Fri Aug 27, 2010 8:31 am
by Fonzeh
I am suddenly angered by the fact that i know nothing about python, yet everyone else seems to. The fuck, brb time to learn.

Re: Python Challenge

Posted: Fri Aug 27, 2010 8:35 am
by Mgalekgolo
Fonzie wrote:I am suddenly angered by the fact that i know nothing about python, yet everyone else seems to. The fuck, brb time to learn.
same here man

Re: Python Challenge

Posted: Fri Aug 27, 2010 9:33 pm
by tokage
Haruhi Suzumiya wrote:
Fonzie wrote:I am suddenly angered by the fact that i know nothing about python, yet everyone else seems to. The fuck, brb time to learn.
same here man
Yes, but you know nothing about anything >:|