-
Notifications
You must be signed in to change notification settings - Fork 0
/
Backing_Classes.py
89 lines (48 loc) · 817 Bytes
/
Backing_Classes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
from pyknow import *
class Food(Fact):
pass
class Menu(Fact):
pass
class Drinks(Fact):
pass
class Alcoholic(Fact):
pass
class MusicPlaylist(Fact):
pass
class Themes(Fact):
pass
class Decorations(Fact):
pass
class Tableware(Fact):
pass
class Checklist(Fact):
pass
class GuestsNumber(Fact):
pass
class Date(Fact):
pass
class PartyType(Fact):
pass
class Budget(Fact):
pass
class BudgetClass(Fact):
pass
class HouseParty(Fact):
pass
class Venue(Fact):
pass
class Ages(Fact):
pass
class Done(Fact):
pass
class List:
def __init__(self, lst):
self.lst = []
for item in lst:
self.lst.append(item)
def get_item(self, index):
return self.lst[index]
def set_item(self, index, new_value):
self.lst[index] = new_value
def get_list(self):
return self.lst