'''simple docstring'''

from __future__ import annotations







def __UpperCamelCase(   _A					:				list[float]    ):
   '''simple docstring'''
   UpperCAmelCase__							:				Optional[Any]   				=  0.0_0
   UpperCAmelCase__							:				Tuple   				=  0
   for resistor in resistors:
      if resistor <= 0:
         UpperCAmelCase__							:				Union[str, Any]   				=  F'''Resistor at index {index} has a negative or zero value!'''
         raise ValueError(_A    )
      first_sum += 1 / float(_A    )
      index += 1
   return 1 / first_sum







def __UpperCamelCase(   _A					:				list[float]    ):
   '''simple docstring'''
   UpperCAmelCase__							:				Optional[int]   				=  0.0_0
   UpperCAmelCase__							:				Any   				=  0
   for resistor in resistors:
      sum_r += resistor
      if resistor < 0:
         UpperCAmelCase__							:				int   				=  F'''Resistor at index {index} has a negative value!'''
         raise ValueError(_A    )
      index += 1
   return sum_r


if __name__ == "__main__":
  import doctest

  doctest.testmod()





'''simple docstring'''

from typing import TYPE_CHECKING

from ...utils import _LazyModule


UpperCamelCase__     :	Union[str, Any]				=			{'tokenization_byt5': ['ByT5Tokenizer']}


if TYPE_CHECKING:
  from .tokenization_byta import ByTaTokenizer
else:
  import sys

  UpperCamelCase__     :	List[str]				=			_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)




