Revision as of 21:12, 11 July 2017 by Andr3w
In these examples we select only some countries to print. A process that takes a list and selects only certain items is a "filter". Some get through, some don't.
https://docs.python.org/2.7/library/string.html includes a list of string methods.
Selecting a region.
Print the countries where the region is Europe.
Picking the stans.
Countries with a z.
Small countries (by area).
Print the countries that have an area of less than 100.