import zipfile zipfile zipfile'filename zip ' extractall' :/users/heinold/desktop/ getting files from the internet for getting files from the internet there is the urllib module here is simple examplefrom urllib request import urlopen page urlopen' page read(decode(the urlopen function returns an object that is lot like file object in the example abovewe use the read(and decode(methods to read the entire contents of the page into string the string in the example above is filled with the text of an html filewhich is not pretty to read there are modules in python for parsing htmlbut we will not cover them here the code above is useful for downloading ordinary text files of data from the internet for anything more sophisticated than thisconsider using the third party requests library sound an easy way to get some simple sounds in your program is to use the winsound module it only works with windowshowever one function in winsound is beep which can be used to play tone at given frequency for given amount of time here is an example that plays sound of hz for second from winsound import beep beep( , the first argument to beep is the frequency in hertz and the second is the duration in milliseconds another function in winsound is playsoundwhich can be used to play wav files here is an examplefrom winsound import playsound playsound'soundfile wav ''snd_alias 'on the other handif you have pygame installedit is pretty easy to play any type of common sound file this is shown belowand it works on systems other than windowsimport pygame pygame mixer init( ,- , , sound pygame mixer sound'soundfile wav 'sound play(