





from __future__ import annotations

def      UpperCAmelCase_    (    _UpperCAmelCase							:float  ,						_UpperCAmelCase							:float  ,						_UpperCAmelCase							:float  ,						)	->				tuple:
     '''simple docstring'''


     if (electron_conc, hole_conc, intrinsic_conc).count(0				) != 1:
          raise ValueError('''You cannot supply more or less than 2 values'''				)
     elif electron_conc < 0:
          raise ValueError('''Electron concentration cannot be negative in a semiconductor'''				)
     elif hole_conc < 0:
          raise ValueError('''Hole concentration cannot be negative in a semiconductor'''				)
     elif intrinsic_conc < 0:
          raise ValueError(
              '''Intrinsic concentration cannot be negative in a semiconductor'''				)
     elif electron_conc == 0:
          return (
              "electron_conc",
              intrinsic_conc**2 / hole_conc,
          )
     elif hole_conc == 0:
          return (
              "hole_conc",
              intrinsic_conc**2 / electron_conc,
          )
     elif intrinsic_conc == 0:
          return (
              "intrinsic_conc",
              (electron_conc * hole_conc) ** 0.5,
          )
     else:
          return (-1, -1)


if __name__ == "__main__":
      import doctest

      doctest.testmod()










from __future__ import annotations

def      UpperCAmelCase_    (    _UpperCAmelCase							:list[float]  ,						_UpperCAmelCase							:list[float]				)	->				float:
     '''simple docstring'''


     A_          =       sorted(numsa + numsa				)
     A_   ,    A_          =       divmod(len(_UpperCAmelCase				)  ,						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()
      a__      :     Optional[Any]         =		[float(x) for x in input('Enter the elements of first array: ').split()]
      a__      :     int         =		[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)}''')



