



"""simple docstring"""







from collections import namedtuple

lowercase__		:				Optional[Any]          =	namedtuple("""from_to""", """from_ to""")

lowercase__		:				List[str]          =	{
    """cubicmeter""": from_to(1, 1),
    """litre""": from_to(0.001, 1_0_0_0),
    """kilolitre""": from_to(1, 1),
    """gallon""": from_to(0.0_0454, 264.172),
    """cubicyard""": from_to(0.7_6455, 1.3_0795),
    """cubicfoot""": from_to(0.028, 35.3147),
    """cup""": from_to(0.0_0023_6588, 4226.75),
}

def 				UpperCamelCase_    (    lowerCAmelCase__      :				float    ,   lowerCAmelCase__      :				str    ,   lowerCAmelCase__      :				str						)						->   float:

  """simple docstring"""




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


if __name__ == "__main__":
     import doctest

     doctest.testmod()










"""simple docstring"""







from __future__ import annotations

def 				UpperCamelCase_    (    lowerCAmelCase__      :				list[int]    ,   lowerCAmelCase__      :				int						)						->   bool:

  """simple docstring"""




  if len(lowerCAmelCase__						) == 0:
    return False
  lowerCAmelCase_   :				Union[str, Any]								= len(lowerCAmelCase__						) // 2
  if a_list[midpoint] == item:
    return True
  if item < a_list[midpoint]:
    return binary_search(a_list[:midpoint]    ,   lowerCAmelCase__						)
  else:
    return binary_search(a_list[midpoint + 1 :]    ,   lowerCAmelCase__						)


if __name__ == "__main__":
     lowercase__		:				str          =	input("""Enter numbers separated by comma:\n""").strip()
     lowercase__		:				Optional[int]          =	[int(item.strip()) for item in user_input.split(""",""")]
     lowercase__		:				Optional[Any]          =	int(input("""Enter the number to be found in the list:\n""").strip())
     lowercase__		:				int          =	"""""" if binary_search(sequence, target) else """not """
     print(f'{target} was {not_str}found in {sequence}')





