'''simple docstring'''

from __future__ import annotations







def __UpperCamelCase(   _A					:				list    ):
   '''simple docstring'''
   if len(_A    ) == 0:
      return []
   UpperCAmelCase__				,      UpperCAmelCase__							:				Tuple   				=  min(_A    ), max(_A    )
   UpperCAmelCase__							:				List[Any]   				=  int(max_value - min_value    ) + 1
   UpperCAmelCase__							:				list[list]   				=  [[] for _ in range(_A    )]

   for i in my_list:
      buckets[int(i - min_value    )].append(_A    )

   return [v for bucket in buckets for v in sorted(_A    )]


if __name__ == "__main__":
  from doctest import testmod

  testmod()
  assert bucket_sort([4, 5, 3, 2, 1]) == [1, 2, 3, 4, 5]
  assert bucket_sort([0, 1, -10, 15, 2, -2]) == [-10, -2, 0, 1, 2, 15]





'''simple docstring'''

from __future__ import annotations

from collections import namedtuple







def __UpperCamelCase(   _A					:				float  ,			_A					:				float  ,			_A					:				float    ):
   '''simple docstring'''
   UpperCAmelCase__							:				int   				=  namedtuple('''result'''  ,			'''name value'''    )
   if (voltage, current, power).count(0    ) != 1:
      raise ValueError('''Only one argument must be 0'''    )
   elif power < 0:
      raise ValueError(
          '''Power cannot be negative in any electrical/electronics system'''    )
   elif voltage == 0:
      return result('''voltage'''  ,			power / current    )
   elif current == 0:
      return result('''current'''  ,			power / voltage    )
   elif power == 0:
      return result('''power'''  ,			float(round(abs(voltage * current    )  ,			2    )    )    )
   else:
      raise ValueError('''Exactly one argument must be 0'''    )


if __name__ == "__main__":
  import doctest

  doctest.testmod()




