class KFC:
def init(self,m,d):
m = self.m
d = self.d
def show_menu(self,m):
for i in range(len(m)):
print(f"ID:{i} Name:{m[i][0]} Price:{m[i][1]}")
print("Please choice you want to eat.")
def decide(self,menu,decision):
print("Please input the ID, input -1 to end.")
dl = []
sp = 0
while True:
id = int(input())
if id == -1:
break
dl.append(m[id][0])
sp += m[id][1]
dl.sort()
d = {}
for i in range(len(a)):
if a[i] not in d:
d[a[i]] = 1
else:
d[a[i]] += 1
dn = list(d.keys())
dm = list(d.values())
print("You choice the:")
for i in range(len(dl)):
print(dn,dm)
print("The total price is:",sp)