


def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__      ,	SCREAMING_SNAKE_CASE__			):
 return base * power(SCREAMING_SNAKE_CASE__      ,	(exponent - 1)			) if exponent else 1


if __name__ == "__main__":
       print('Raise base to the power of exponent using recursion...')
       lowercase_	   =     int(input('Enter the base: ').strip())
       lowercase_	   =     int(input('Enter the exponent: ').strip())
       lowercase_	   =     power(base, abs(exponent))
       if exponent < 0:  # power() does not properly deal w/ negative exponents
              lowercase_	   =     1 / result
       print(F"""{base} to the power of {exponent} is {result}""")





from __future__ import annotations
def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__						):
 __lowerCamelCase		:							Optional[Any]		 =						0.00
 __lowerCamelCase		:							Tuple		 =						0
 for resistor in resistors:
  if resistor <= 0:
   __lowerCamelCase		:							Union[str, Any]		 =						f'Resistor at index {index} has a negative or zero value!'
   raise ValueError(SCREAMING_SNAKE_CASE__						)
  first_sum += 1 / float(SCREAMING_SNAKE_CASE__						)
  index += 1
 return 1 / first_sum
def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__						):
 __lowerCamelCase		:							Union[str, Any]		 =						0.00
 __lowerCamelCase		:							str		 =						0
 for resistor in resistors:
  sum_r += resistor
  if resistor < 0:
   __lowerCamelCase		:							Any		 =						f'Resistor at index {index} has a negative value!'
   raise ValueError(SCREAMING_SNAKE_CASE__						)
  index += 1
 return sum_r


if __name__ == "__main__":
       import doctest

       doctest.testmod()

