[L6] I found the pair and the message, now stuck.

2,073 views
Skip to first unread message

Marcelo Duarte

unread,
Jan 14, 2016, 10:21:27 AM1/14/16
to Python Challenge
Hi all!

So, I found the pair, did the thing that involves repetition. And got a message at the end. When I try to collect what I'm asked to collect it comes empty. What should I do now?

Marcelo Duarte

unread,
Jan 14, 2016, 7:27:14 PM1/14/16
to Python Challenge
I was collecting the wrong thing. I collected from the repetition items and it formed the next url.

Syafiq Kamarul Azman

unread,
Feb 13, 2016, 2:42:35 AM2/13/16
to Python Challenge
Any hint on what needs to be collected? I tried summing up all the numbers, gave me nothing...

Marc Besner

unread,
Mar 25, 2016, 1:39:48 PM3/25/16
to Python Challenge
I'm stuck. I've read about the python zip() function, but other than the 6 3s (by the arrow in the upper right corner), there are no numbers to pass to zip. Plus passing the same number 6 times, or in 2 separate lists, won't do anything of interest.

Any help/hints would be much appreciated, and help me move forward with the challenges!

Matthew Gladback

unread,
Apr 6, 2016, 8:56:09 AM4/6/16
to Python Challenge
There's a .zip file on the page.  I think it's clickable from your browser.  Save it to your hard disk, then open it in any archiving utility (Winzip, for example).  There are instructions in one of the files within.  You'll need a programmatic method to find the needle in that haystack, though.  In response to Syafiq, you want to collect the comments on the files as you follow the chain.

Marc Besner

unread,
Apr 7, 2016, 7:46:31 PM4/7/16
to Python Challenge
Thanks Matthew. Now to parse the files to find the answer!

jseb

unread,
Apr 8, 2016, 8:48:07 AM4/8/16
to Python Challenge
I've parse the files as you say, but what i found, doesn't help me more to solve the problem.
Where do i go to collect that must be collected.

Giuseppe C

unread,
May 16, 2016, 3:01:52 AM5/16/16
to Python Challenge
Same problem.

I have no idea where the stuff to be collected is. Pleease?
Message has been deleted

miguel garnacho velez

unread,
Oct 14, 2016, 10:26:07 AM10/14/16
to Python Challenge


You will need to use the zip library to get the commento of the file where the answer is.  https://docs.python.org/3/library/zipfile.html#zipfile.ZipInfo.comment

Ritu Seth

unread,
Jan 10, 2021, 6:53:54 PM1/10/21
to Python Challenge
Two ways to get comments. ZipFile.comment and ZipInfo.comment. 
However, all of them show up to be b' '. Still stuck after trying both ways. 
For ALL files. I am using a mac. wondering if unzip did not work well for me regarding preserving comments. 
I tried all calls of class ZipInfo. 

['CRC', 'FileHeader', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slots__', '__str__', '__subclasshook__', '_compresslevel', '_decodeExtra', '_encodeFilenameFlags', '_raw_time', 'comment', 'compress_size', 'compress_type', 'create_system', 'create_version', 'date_time', 'external_attr', 'extra', 'extract_version', 'file_size', 'filename', 'flag_bits', 'from_file', 'header_offset', 'internal_attr', 'is_dir', 'orig_filename', 'reserved', 'volume']

Still stuck.


Alvaro Martínez

unread,
Jan 12, 2021, 7:41:19 AM1/12/21
to python-c...@googlegroups.com

ZipFile is the zip file itself, including its comment string

ZipInfo is information about each member (file inside the zip), including that member's comment.

Are you following nothing? Did you read the file that instructed you to do so?

--
You received this message because you are subscribed to the Google Groups "Python Challenge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-challen...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-challenge/142d036d-eb65-478d-ae0d-043deed5fe78n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages