

def 						UpperCamelCase (lowercase_:			int   ,				lowercase_:			Tuple )					->				Optional[Any]:
	return base * power(lowercase_   ,				(exponent - 1) ) if exponent else 1


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






from __future__ import annotations

def 						UpperCamelCase (lowercase_:			float   ,				lowercase_:			float   ,				lowercase_:			float )					->				dict[str, float]:
	if (voltage, current, resistance).count(0 ) != 1:
		raise ValueError("""One and only one argument must be 0""" )
	if resistance < 0:
		raise ValueError("""Resistance cannot be negative""" )
	if voltage == 0:
		return {"voltage": float(current * resistance )}
	elif current == 0:
		return {"current": voltage / resistance}
	elif resistance == 0:
		return {"resistance": voltage / current}
	else:
		raise ValueError("""Exactly one argument must be 0""" )


if __name__ == "__main__":
	import doctest

	doctest.testmod()



