Wolfram Language

Open live version

Make a Tooltip Flag Quiz

Challenge yourself to identify countries from their flags.


code

Tooltip[Show[CountryData[#, "Flag"], ImageSize -> 50], #] & /@ CountryData["LatinAmericaCaribbean"]

how it works

This example was live-coded at the Wolfram Research booth at SXSW, March 11, 2014.

With the Wolfram Language, you can easily test your ability to identify country flags by making a list of flag images that reveal the countries they belong to when you mouse over them.

Get a list of the countries in Latin America and the Caribbean:

CountryData["LatinAmericaCaribbean"]

Show the flag of each country in the list:

Show[CountryData[#, "Flag"], ImageSize -> 50] & /@ CountryData["LatinAmericaCaribbean"]

Add a tooltip to each flag so that you can mouse over it to reveal its country:

Tooltip[Show[CountryData[#, "Flag"], ImageSize -> 50], #] & /@ CountryData["LatinAmericaCaribbean"]