Python:Checking for a Suffix

From Progzoo
Jump to: navigation, search

We use the endswith() method.

The code selects those countries that end with "land".

[Font] [Default] [Show] [Resize] [History] [Profile]