From d0dd9cd28eec6007c2f80737a47895498b0ee9f7 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 18 Oct 2016 16:26:00 +0200 Subject: Prolog: add more world_data exercises --- prolog/problems/world_data/people_in_capitals_1/en.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 prolog/problems/world_data/people_in_capitals_1/en.py (limited to 'prolog/problems/world_data/people_in_capitals_1/en.py') 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 = '''\ +

people_in_capitals(N): N is the total number of people living in capital cities of the world.

+

Useful predicates:

+
  • country(Name, ID, Capital, CapitalProvince, Size, Population)
  • +
  • city(Name, Country ID, Province, Population, Lat, Lon, Elevation).
  • +''' + +hint = {} -- cgit v1.2.1