You are on page 1of 3

What would you describe a filter as?

The filter() function returns an iterator were the items are filtered through a function to test if the item
is accepted or not.

What is PLI in python?

PIL (Python image library) is a Python image library that adds support for controlling images.

What is the use of the "import" keyword in python?

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)

You might also like