



"""simple docstring"""

import re
def  __snake_case							(	__A      :						str     )     ->       list:






				'''simple docstring'''
				return [char.split() for char in re.split(r'[^ a-z A-Z 0-9 \s]'							,		str_     )]
def  __snake_case							(	__A      :						str     )     ->       str:






				'''simple docstring'''
				SCREAMING_SNAKE_CASE						:							Optional[Any]							=     split_input(str_     )
				return "".join(
				    [''.join([char.capitalize() for char in sub_str]     ) for sub_str in string_split]     )
def  __snake_case							(	__A      :						str							,		__A      :						bool							,		__A      :						str     )     ->       str:






				'''simple docstring'''
				try:
								SCREAMING_SNAKE_CASE						:							Union[str, Any]							=     split_input(__A     )
								if upper:
												SCREAMING_SNAKE_CASE						:							List[Any]							=     ''.join(
												    [
												        separator.join([char.upper() for char in sub_str]     )
												        for sub_str in string_split
												    ]     )
								else:
												SCREAMING_SNAKE_CASE						:							Optional[int]							=     ''.join(
												    [
												        separator.join([char.lower() for char in sub_str]     )
												        for sub_str in string_split
												    ]     )
								return res_str
				except IndexError:
								return "not valid string"
def  __snake_case							(	__A      :						str     )     ->       str:






				'''simple docstring'''
				return to_simple_case(__A     )
def  __snake_case							(	__A      :						str     )     ->       str:






				'''simple docstring'''
				try:
								SCREAMING_SNAKE_CASE						:							List[Any]							=     to_simple_case(__A     )
								return res_str[0].lower() + res_str[1:]
				except IndexError:
								return "not valid string"
def  __snake_case							(	__A      :						str							,		__A      :						bool     )     ->       str:






				'''simple docstring'''
				return to_complex_case(__A							,		__A							,		'_'     )
def  __snake_case							(	__A      :						str							,		__A      :						bool     )     ->       str:






				'''simple docstring'''
				return to_complex_case(__A							,		__A							,		'-'     )


if __name__ == "__main__":
							__import__('doctest').testmod()










"""simple docstring"""

def  __snake_case							(	__A      :						int							,		__A      :						int     )     ->       float:






				'''simple docstring'''
				return base * power(__A							,		(exponent - 1)     ) if exponent else 1


if __name__ == "__main__":
							print('Raise base to the power of exponent using recursion...')
							A_						:    str				=      int(input('Enter the base: ').strip())
							A_						:    Dict				=      int(input('Enter the exponent: ').strip())
							A_						:    List[str]				=      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}''')





