code: def update(self, bandit, payout):
          '''
          Update bandit trials and payouts for given bandit.
  
          Parameters
          ----------
          bandit : int
              Bandit index
          payout : float
  
          Returns
          -------
          None
          '''
  
          self.choices.append(bandit)
          self.pulls[bandit] += 1
          self.wins[bandit] += payout
          self.bandits.payouts[bandit] += payouf update(self, bandit, payout):
          '''
          Update bandit trials and payouts for given bandit.
  
          Parameters
          ----------
          bandit : int
              Bandit index
          payout : float
  
          Returns
          -------
          None
          '''
  
          self.choices.append(bandit)
          self.pulls[bandit] += 1
          self.wins[bandit] += payout
          self.bandits.payouts[bandit] += payout
docs: Update bandit trials and payouts for given bandit.
  
          Parameters
          ----------
          bandit : int
              Bandit index
          payout : float
  
          Returns
          -------
          None