Wolfram Language

Open live version

Find the Population of a Country

Create a web form to find the population of a country.


code

X

how it works

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

This gives the population of the United States:

In[1]:=
X
Out[1]=

The country known to the Wolfram Language as UnitedStates is known by many other names. An Interpreter object will translate from natural language names to the Wolfram Language name:

In[2]:=
X
Out[2]=

With those two functionalities, you can make a web form that gives the population of a country you specify. The ComputedCountry Interpreter is used automatically to determine the country from what is entered in the form. Specify Permissions->Public to make the form accessible to everyone:

In[3]:=
X
Out[3]=