You will see the entire descrption and the test casees in the attachments
1 Overview
In this project, you will be writing a single function; this function will (very
approximately) recreate the DEFLATE algorithm – which will show you how a
.zip file stores compressed data. You will be passed an array of tokens, which
represent the data in the compressed file; you will return a string, which is the
uncompressed data.
type()
Python has a handy function, which you can use to check for the type of any
object: type. You can compare the return value to the various standard Python
types, like this:
foo = [1,2,3]
if type(foo) == list:
print(“Yep, it’s a list!”)
if type(foo[0]) == int:
print(“Yep, element 0 is an integer”)
Other common types you might want to check for:
str
tuple
set
dict


0 comments