
lowercase__       ={
    "km/h": 1.0,
    "m/s": 3.6,
    "mph": 1.609_344,
    "knot": 1.852,
}

lowercase__       ={
    "km/h": 1.0,
    "m/s": 0.277_777_778,
    "mph": 0.621_371_192,
    "knot": 0.539_956_803,
}




def    __UpperCamelCase     (				lowerCAmelCase__							:				float  ,   lowerCAmelCase__							:				str  ,   lowerCAmelCase__							:				str  ):
 if unit_to not in speed_chart or unit_from not in speed_chart_inverse:
  __a :  List[str]						=  (
      f"Incorrect 'from_type' or 'to_type' value: {unit_from!r}, {unit_to!r}\n"
      f"Valid values are: {', '.join(lowerCAmelCase__  )}"
  )
  raise ValueError(lowerCAmelCase__  )
 return round(speed * speed_chart[unit_from] * speed_chart_inverse[unit_to]  ,   3  )


if __name__ == "__main__":
      import doctest

      doctest.testmod()


from __future__ import annotations




def    __UpperCamelCase     (				lowerCAmelCase__							:				list[float]  ,   lowerCAmelCase__							:				list[float]  ):
 __a :  Dict						=  sorted(numsa + numsa  )
 __a				,       __a :  Optional[Any]						=  divmod(len(lowerCAmelCase__  )  ,   2  )
 if mod == 1:
  return all_numbers[div]
 else:
  return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
      import doctest

      doctest.testmod()
      lowercase__       =[float(x) for x in input('Enter the elements of first array: ').split()]
      lowercase__       =[float(x) for x in input('Enter the elements of second array: ').split()]
      print(F"""The median of two arrays is: {median_of_two_arrays(array_a, array_a)}""")
