Python:Checking for a Prefix

From Progzoo
Jump to navigation Jump to search

We use the startswith() method.

The code selects those countries that begin with "D".

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