code: def assign_to_series(self, name, series_type, item):
          
          if series_type == "(":
              self.add_def(name + " = _coconut.tuple(" + item + ")")
          elif series_type == "[":
              self.add_def(name + " = _coconut.list(" + item + ")")
          else:
              raise CoconutInternalException("invalid series match type", series_type)
docs: Assign name to item converted to the given series_type.