Thanks to start with. A byte f python is a book by Swaroop C.H. It is also a book for beginners. Back to the module for zip, do I have to import it into my code for use? It actually works on two lists as you rightly said. I am supposed to create a back up files from 2 directories into another seperate directory on my PC and I want the backup wrapped in a zip folder. Thanks. Sent from my BlackBerry wireless device from MTN
-----Original Message----- From: "Alan Gauld" <alan.ga...@btinternet.com> Sender: tutor-bounces+delegbede=dudupay....@python.org Date: Thu, 14 Oct 2010 08:14:40 To: <tutor@python.org> Subject: Re: [Tutor] Zip Command <delegb...@dudupay.com> wrote > Does window os have a zip command for python like linux and unix. > If yes, please what is it. Yes, zip > If no, please what does it use to create a zip folder. But the zip command does nmot create a "zip folder" - in fact I'm not even sure what you mean by a zip folder. I know about zip files but not zip folders... To create zip files you need to use the zipfile module. > I am working on an example in byte of python but the > zip command is from linux but I use windows. The zip commansd is a standard command and is used for joining two lists. The zipfile module is a standard module that should work across platforms. But I have no idea which you are referring to from Byte of Python, sorry. HTH, -- Alan Gauld Author of the Learn to Program web site http://www.alan-g.me.uk/ _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor