





'''simple docstring'''






def      __A						(							a_						:  int      ,a_						:  int	):
		return abs(a_	) if a == 0 else greatest_common_divisor(b % a      ,a_	)






def      __A						(							a_						:  int      ,a_						:  int	):
		while y:  # --> when y=0 then loop will terminate and return x as final GCD.
				lowerCAmelCase	,		lowerCAmelCase     :    Tuple						=   y, x % y
		return abs(a_	)






def      __A						(							):
		try:
				lowerCAmelCase     :    Tuple						=   input("Enter two integers separated by comma (,): "	).split(","	)
				lowerCAmelCase     :    Tuple						=   int(nums[0]	)
				lowerCAmelCase     :    Tuple						=   int(nums[1]	)
				print(
				    f'''greatest_common_divisor({num_a}, {num_a}) = '''
				    f'''{greatest_common_divisor(a_      ,a_	)}'''	)
				print(f'''By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(a_      ,a_	)}'''	)
		except (IndexError, UnboundLocalError, ValueError):
				print("Wrong input"	)


if __name__ == "__main__":
					main()










'''simple docstring'''






from collections import namedtuple

lowerCAmelCase       		=      namedtuple("""from_to""", """from_ to""")

lowerCAmelCase       		=      {
    """cubicmeter""": from_to(1, 1),
    """litre""": from_to(0.001, 10_00),
    """kilolitre""": from_to(1, 1),
    """gallon""": from_to(0.00454, 264.172),
    """cubicyard""": from_to(0.76455, 1.30795),
    """cubicfoot""": from_to(0.028, 35.3147),
    """cup""": from_to(0.000236588, 4226.75),
}






def      __A						(							a_						:  float      ,a_						:  str      ,a_						:  str	):
		if from_type not in METRIC_CONVERSION:
				raise ValueError(
				    f'''Invalid \'from_type\' value: {from_type!r}  Supported values are:\n'''
				    + ", ".join(a_	)	)
		if to_type not in METRIC_CONVERSION:
				raise ValueError(
				    f'''Invalid \'to_type\' value: {to_type!r}.  Supported values are:\n'''
				    + ", ".join(a_	)	)
		return value * METRIC_CONVERSION[from_type].from_ * METRIC_CONVERSION[to_type].to


if __name__ == "__main__":
					import doctest

					doctest.testmod()



