


import math
def       _a			(				SCREAMING_SNAKE_CASE					):


		"""simple docstring"""




		lowercase__						=				0
		lowercase__						=				0
		while num > 0:
				lowercase__						=				num % 8
				lowercase__						=				octal + (remainder * math.floor(math.pow(10						,    SCREAMING_SNAKE_CASE					)					))
				counter += 1
				lowercase__						=				math.floor(num / 8					)  # basically /= 8 without remainder if any
				# This formatting removes trailing '.0' from `octal`.
		return f'0o{int(SCREAMING_SNAKE_CASE					)}'
def       _a			(				):


		"""simple docstring"""




		print('''\n2 in octal is:'''					)
		print(decimal_to_octal(2					)					)  # = 2
		print('''\n8 in octal is:'''					)
		print(decimal_to_octal(8					)					)  # = 10
		print('''\n65 in octal is:'''					)
		print(decimal_to_octal(65					)					)  # = 101
		print('''\n216 in octal is:'''					)
		print(decimal_to_octal(2_16					)					)  # = 330
		print('''\n512 in octal is:'''					)
		print(decimal_to_octal(5_12					)					)  # = 1000
		print('''\n'''					)


if __name__ == "__main__":
		main()






def       _a			(				SCREAMING_SNAKE_CASE						,    SCREAMING_SNAKE_CASE					):


		"""simple docstring"""




		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...')
			lowerCAmelCase	=							int(input('Enter the base: ').strip())
			lowerCAmelCase	=							int(input('Enter the exponent: ').strip())
			lowerCAmelCase	=							power(base, abs(exponent))
			if exponent < 0:  # power() does not properly deal w/ negative exponents
						lowerCAmelCase	=							1 / result
			print(f"""{base} to the power of {exponent} is {result}""")


