🐍Python Challenge
This is a solution for Python Challenge, a puzzle game website, a best place for Python beginner.
Level 0 warming up
Level 1 What about making trans?
Level 2 ocr
Level 3 re
Level 4 follow the chain
Level 5 peak hell
pickle. Download the data from <peakhell> label and use pickle to extract information.Level 6 now there are pairs
channel.zip with a linkedlist based on the names of text files. Check readme.txt, You may use zip.getinfo().comment to retrieve comments of each text file in the ZIP.Level 7 smarty
Image. Note for gray color, R == G == B. Transfer the color into ASCII.Level 8 working hard?
bz2 to decompress.Level 9 connect dots
Level 10 what are you looking at?
len(a[30]), it is a count-and-say.Level 11 odd even
Level 12 dealing evil
evil1.jpg, how about evil2.jpg, evil3.jpg, or even evil4.jpg. Not all the image file are image format. Do the file partition just like dealing with the cards.Level 13 call him
5 is clickable. Use xmlrpclib to call him.Level 14 walk around
Level 15 uzi
calendar.isleap and datetime.date, you may find it easy to get the year. Then check the history for Mozart and his father.Level 16 let me get this straight
a[1:].Level 17 eat?
the+flowers+are+on+their+way, Mozart's father will reply anyway.Level 18 can you tell the difference?
brightness is the difference.deltas.gz and unzip, compare the differences between the two parts of the text file, use unhexlify, and get three images finally.Level 19 please!
indian.wav was saying something about sorry.
*Notice there are some redundent information in the data of the WAVE file, by simply removing it and changing the framerate, we can get the clue idiot.Level 20 go away!
unreal.jpg, you may find the response header is highly suspicous.Range field is unusual in the response headers, by adding and testing different number ranges of the field in an HTTP request, you will get a file talking about what you should do in the next level.Level 21 package.pack
Level 22 emulate
white.gif, it is an animated GIF file, and there is a bright dot hidden inside. What we need to do is to figure out the trajectory of the dot's movement.Level 23 what is this module?
this function in Python for more details.Level 24 from top to bottom
Level 25 imagine how they sound
Level 26 be a man - apologize!
mybroken.zip was modified, and must be corrected before unzip.Level 27 between the tables
zigzag.gif, extract the data from the GIF file, eliminate the redundant information, and convert the content by GIF palette, you may find the link, username, and password to the next level.Level 28 many pairs ring-ring
whodunnit().split()[0] ?
Level 29 silence!
Level 30 relax you are on 30
yankeedoodle.csv. Unfortunately the CSV module in Python doesn't work well for this process, so you may do it on your own.F. The image tells exactly how to decode this information, n = str(x[i])[5] + str(x[i+1])[5] + str(x[i+2])[6].Level 31 where am I?
kohsamui and password thailand, the new page shows an image of Mandelbrot set. Record the interations when computing the function in each pixel.Level 32 etch-a-scetch
beer.Level 33 33 bottles of beer on the wall
Download the image beer2.png, and carefully read this:
If you are blinded by the light, remove its power, with its might. Then from the ashes, fair and square, another truth at you will glare.
Each time, if the pixels could fit into a square, check the brightest pixels and log the information. Then remove the brightest pixels and go to the next round.
Level 34 Temporary End