





'''simple docstring'''




def 	__lowerCamelCase			(      __lowerCAmelCase       :							Any		)		->  Union[str, Any]:
   stooge(__lowerCAmelCase      ,    0      ,    len(__lowerCAmelCase		) - 1		)
   return arr





def 	__lowerCamelCase			(      __lowerCAmelCase       :							Tuple      ,    __lowerCAmelCase       :							Union[str, Any]      ,    __lowerCAmelCase       :							int		)		->  List[str]:
   if i >= h:
      return

   # If first element is smaller than the last then swap them
   if arr[i] > arr[h]:
      snake_case						,    snake_case 						=   arr[h], arr[i]

   # If there are more than 2 elements in the array
   if h - i + 1 > 2:
      snake_case 						=   (int)((h - i + 1) / 3		)

      # Recursively sort first 2/3 elements
      stooge(__lowerCAmelCase      ,    __lowerCAmelCase      ,    (h - t)		)

      # Recursively sort last 2/3 elements
      stooge(__lowerCAmelCase      ,    i + t      ,    (__lowerCAmelCase)		)

      # Recursively sort first 2/3 elements
      stooge(__lowerCAmelCase      ,    __lowerCAmelCase      ,    (h - t)		)


if __name__ == "__main__":
 _SCREAMING_SNAKE_CASE							     =			input("Enter numbers separated by a comma:\n").strip()
 _SCREAMING_SNAKE_CASE							     =			[int(item) for item in user_input.split(",")]
 print(stooge_sort(unsorted))








'''simple docstring'''




from __future__ import annotations

_SCREAMING_SNAKE_CASE							     =			1.6021E-19  # units = C





def 	__lowerCamelCase			(      __lowerCAmelCase       :							float      ,    __lowerCAmelCase       :							float      ,    __lowerCAmelCase       :							float      ,    )		->  tuple[str, float]:
   if (conductivity, electron_conc, mobility).count(0		) != 1:
      raise ValueError("""You cannot supply more or less than 2 values"""		)
   elif conductivity < 0:
      raise ValueError("""Conductivity cannot be negative"""		)
   elif electron_conc < 0:
      raise ValueError("""Electron concentration cannot be negative"""		)
   elif mobility < 0:
      raise ValueError("""mobility cannot be negative"""		)
   elif conductivity == 0:
      return (
          "conductivity",
          mobility * electron_conc * ELECTRON_CHARGE,
      )
   elif electron_conc == 0:
      return (
          "electron_conc",
          conductivity / (mobility * ELECTRON_CHARGE),
      )
   else:
      return (
          "mobility",
          conductivity / (electron_conc * ELECTRON_CHARGE),
      )


if __name__ == "__main__":
 import doctest

 doctest.testmod()

