Professional Documents
Culture Documents
Com Sci
Com Sci
The filter() function returns an iterator were the items are filtered through a function to test if the item
is accepted or not.
PIL (Python image library) is a Python image library that adds support for controlling images.
The import keyword finds and loads a package, a sub-package or a module if they are found in the
system using the import mechanism. Once a module is loaded, the name of the imported module is
introduced in the current scope where the import statement is executed.
Why you need to use str in this line of code: print ('Width:' + str (img.width))
To define data type and set validation for that data (restricted to only string)