


from __future__ import annotations




def    a__    (		snake_case__					:							list[float]     ):
  _UpperCAmelCase		:							Dict							=     0.00
  _UpperCAmelCase		:							Dict							=     0
  for resistor in resistors:
    if resistor <= 0:
      _UpperCAmelCase		:							Optional[int]							=     f'''Resistor at index {index} has a negative or zero value!'''
      raise ValueError(snake_case__     )
    first_sum += 1 / float(snake_case__     )
    index += 1
  return 1 / first_sum




def    a__    (		snake_case__					:							list[float]     ):
  _UpperCAmelCase		:							Any							=     0.00
  _UpperCAmelCase		:							str							=     0
  for resistor in resistors:
    sum_r += resistor
    if resistor < 0:
      _UpperCAmelCase		:							Dict							=     f'''Resistor at index {index} has a negative value!'''
      raise ValueError(snake_case__     )
    index += 1
  return sum_r


if __name__ == "__main__":
 import doctest

 doctest.testmod()









def    a__    (		snake_case__					:							int						,   snake_case__					:							int     ):
  return 1 if input_a == input_a else 0




def    a__    (		):
  assert xnor_gate(0						,   0     ) == 1
  assert xnor_gate(0						,   1     ) == 0
  assert xnor_gate(1						,   0     ) == 0
  assert xnor_gate(1						,   1     ) == 1


if __name__ == "__main__":
 print(xnor_gate(0, 0))
 print(xnor_gate(0, 1))
 print(xnor_gate(1, 0))
 print(xnor_gate(1, 1))





