diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-10-06 14:40:16 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-10-06 14:41:03 +0200 |
commit | d29fed213caccc7bf2f66ed7a11b94b4bbcac3d1 (patch) | |
tree | 04f96da9e5a4ea6572db9700907959eae295305b /python/facts | |
parent | 969812724912512740dbf037940a9e6770df19ed (diff) |
Python: add support for auxiliary code (like for Prolog)
Diffstat (limited to 'python/facts')
-rw-r--r-- | python/facts/family_tree.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/python/facts/family_tree.py b/python/facts/family_tree.py new file mode 100644 index 0000000..7f98cff --- /dev/null +++ b/python/facts/family_tree.py @@ -0,0 +1,31 @@ +facts = '''\ +children = { + "Adam": ["Matjaž", "Cilka", "Daniel", "Erik"], + "Aleksander": [], + "Alenka": [], + "Barbara": [], + "Cilka": [], + "Daniel": ["Elizabeta", "Hans"], + "Erik": [], + "Elizabeta": ["Ludvik", "Jurij", "Barbara", "Herman", "Mihael"], + "Franc": [], + "Herman": ["Margareta"], + "Hans": [], + "Jožef": ["Alenka", "Aleksander", "Petra"], + "Jurij": ["Franc", "Jožef"], + "Ludvik": [], + "Margareta": [], + "Matjaž": ["Viljem"], + "Mihael": [], + "Petra": [], + "Tadeja": [], + "Viljem": ["Tadeja"], +} + +age = { + "Adam": 111, "Matjaž": 90, "Cilka": 88, "Daniel": 85, "Erik": 83, + "Viljem": 58, "Tadeja": 20, "Elizabeta": 67, "Hans": 64, "Ludvik": 50, + "Jurij": 49, "Barbara": 45, "Herman": 39, "Mihael": 32, "Franc": 30, + "Jožef": 29, "Margareta": 10, "Alenka": 5, "Aleksander": 7, "Petra": 9 +} +''' |