summaryrefslogtreecommitdiff
path: root/prolog/problems/world_data/people_in_capitals_1/en.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-10-18 16:26:00 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-10-18 16:26:00 +0200
commitd0dd9cd28eec6007c2f80737a47895498b0ee9f7 (patch)
tree64c5f61d862de22609a70b9fb313e08dd236f4a0 /prolog/problems/world_data/people_in_capitals_1/en.py
parent64e1f9eb2e18910e4ecc7299c53868445d3ed9b1 (diff)
Prolog: add more world_data exercises
Diffstat (limited to 'prolog/problems/world_data/people_in_capitals_1/en.py')
-rw-r--r--prolog/problems/world_data/people_in_capitals_1/en.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/prolog/problems/world_data/people_in_capitals_1/en.py b/prolog/problems/world_data/people_in_capitals_1/en.py
new file mode 100644
index 0000000..1c8b93d
--- /dev/null
+++ b/prolog/problems/world_data/people_in_capitals_1/en.py
@@ -0,0 +1,11 @@
+name = 'people_in_capitals/1'
+slug = 'number of people living in capitals'
+
+description = '''\
+<p><code>people_in_capitals(N)</code>: <code>N</code> is the total number of people living in capital cities of the world.</p>
+<p>Useful predicates:</p>
+<li><code>country(Name, ID, Capital, CapitalProvince, Size, Population)</code></li>
+<li><code>city(Name, Country ID, Province, Population, Lat, Lon, Elevation)</code>.</li>
+'''
+
+hint = {}