code: def set_inputs(self, inputs):
          
          if len(inputs) != len(self.inputs):
              raise RuntimeError(
                  "Number of inputs {0:d} does not match number of input nodes {1:d}".format(
                      len(inputs), len(self.inputs)))
          for i, v in zip(self.inputs, inputs):
              self.input_values[i] = v
docs: Assign input voltages.