Unzip compressed files with Python and zipfile

If you need to unzip a compressed files using python there is a module to do that easily. This can be useful in many ways. I use it, for example, to clone some scripts into a new folder passing the path where the zipped files with the code is and unzipping it in the new folder where I need that code. This makes everything really fast and simple to do it. I also put this code into a folder that python looks for automatically, placing it in a folder wich path is in a .pth file in the site-packages directory of the installation of python (see the post for this).

To unzip a file there is this module, zipfile, that make you do it:

Post written by Avatar A python enthusiast

Higlighted videos

Speech recognition game
Pygame cheatsheets
Let's start using pygame to make games! Pretty fun assured.