<jupyter_start><jupyter_text>simulation for 1 customer<jupyter_code>c1 = Customer(1, 'drinks', transition_matrix)
c1.state
c1.change_state()
c1.state
customers = [Customer(i, 'fruit',transition_matrix) for i in range(10)]
for i, c in enumerate(customers): #at each minute, move all customers
    c.change_state()
    if c.state == 'checkout':
        print(f'Customer {i} has been churned!')
customers<jupyter_output><empty_output><jupyter_text>create class Supermarket<jupyter_code>class Supermarket:
    """manages multiple Customer instances that are currently in the market.
 """

    def __init__(self, customers, state):
        self.customers = customers
        self.state = state
   #def get_time():
     #"""current time in HH:MM format,
     #"""
    def next_minute(self):
        """propagates all customers to the next state 
        w/ change_state
     """
    def remove_ex_customers(self):
        """remove churned from list"""

    def add_new_customers(self):
    """ new list of customers ready to change state """<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup