python data structure question
this is the problem statement You are making a call center application, which should handle customers in a queue. The CallCenter class is implemented as a Queue. Each element of the queue has the topic of the call as its value. The two possible values are 'general' and 'technical'. A 'general' call takes on average 5 minutes to handle, while a 'technical' call requires 10 minutes. The given code adds multiple customers to the Queue from user input. You need to dequeue all added customers, calculate and output the total time required to handle all calls. please help me...the code pass the all test but it didnot pass the last test class CallCenter: def __init__(self): self.customers = [] def is_empty(self): return self.customers == [] def add(self, x): self.customers.insert(0, x) def next(self): return self.customers.pop() c = CallCenter() gcount=0 tcount=0 while True: n = input() if n=='general': gcount+=1 g_time=gcount*5 elif n=='technical': tcount+=1 t_time=tcount*10 elif n == 'end': break c.add(n) c.next() r=g_time+t_time print(r) please tell me whre the mistake i have done