summaryrefslogtreecommitdiff
path: root/prolog/problems/world_data/all_capitals_1/en.py
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/world_data/all_capitals_1/en.py')
-rw-r--r--prolog/problems/world_data/all_capitals_1/en.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/prolog/problems/world_data/all_capitals_1/en.py b/prolog/problems/world_data/all_capitals_1/en.py
new file mode 100644
index 0000000..92eb2b2
--- /dev/null
+++ b/prolog/problems/world_data/all_capitals_1/en.py
@@ -0,0 +1,13 @@
+name = 'all_capitals/1'
+slug = 'capital cities'
+
+description = '''\
+<p><code>all_capitals(List)</code>: <code>List</code> is a list of all capitals in the world.</p>
+<pre>
+?- all_capitals(List).
+ List = ['Tirana', 'Athina', 'Skopje', 'Beograd', …]
+</pre>
+<p>Useful facts are given as <code>country(Name, ID, Capital, CapitalProvince, Size, Population)</code>.</p>
+'''
+
+hint = {}