




def 							_UpperCAmelCase     (UpperCamelCase_       :       list				):
				'''simple docstring'''
				if not isinstance(UpperCamelCase_					,			UpperCamelCase_				):
								raise ValueError("""Input series is not valid, valid series - [2, 4, 8]"""				)
				if len(UpperCamelCase_				) == 0:
								raise ValueError("""Input list must be a non empty list"""				)
				if len(UpperCamelCase_				) == 1:
								return True
				try:
								_lowerCAmelCase			:			Dict        =					series[1] / series[0]
								for index in range(len(UpperCamelCase_				) - 1				):
												if series[index + 1] / series[index] != common_ratio:
																return False
				except ZeroDivisionError:
								return False
				return True




def 							_UpperCAmelCase     (UpperCamelCase_       :       list				):
				'''simple docstring'''
				if not isinstance(UpperCamelCase_					,			UpperCamelCase_				):
								raise ValueError("""Input series is not valid, valid series - [2, 4, 8]"""				)
				if len(UpperCamelCase_				) == 0:
								raise ValueError("""Input list must be a non empty list"""				)
				_lowerCAmelCase			:			int        =					1
				for value in series:
								answer *= value
				return pow(UpperCamelCase_					,			1 / len(UpperCamelCase_				)				)


if __name__ == "__main__":
	import doctest

	doctest.testmod()







'''simple docstring'''
def 				snake_case_  (   a__		:	int			):



    """simple docstring"""




    if not isinstance(a__    ,a__			) or number < 0:
        raise ValueError("""Input must be a non-negative integer"""			)

    __lowercase							=						number & ~(number - 1)
    __lowercase							=						0
    while intermediate:
        intermediate >>= 1
        index += 1
    return index - 1


if __name__ == "__main__":
  import doctest

  doctest.testmod(verbose=True)




