


from __future__ import annotations



def       _lowerCAmelCase    (				lowerCAmelCase_				:float		,    lowerCAmelCase_				:float		,    lowerCAmelCase_				:float				)->dict[str, float]:
   '''simple docstring'''






   if (voltage, current, resistance).count(0				) != 1:
      raise ValueError("One and only one argument must be 0"				)
   if resistance < 0:
      raise ValueError("Resistance cannot be negative"				)
   if voltage == 0:
      return {"voltage": float(current * resistance				)}
   elif current == 0:
      return {"current": voltage / resistance}
   elif resistance == 0:
      return {"resistance": voltage / current}
   else:
      raise ValueError("Exactly one argument must be 0"				)


if __name__ == "__main__":
   import doctest

   doctest.testmod()








from __future__ import annotations



def       _lowerCAmelCase    (				lowerCAmelCase_				:int		,    lowerCAmelCase_				:int				)->list[str]:
   '''simple docstring'''






   if partitions <= 0:
      raise ValueError("partitions must be a positive number!"				)
   if partitions > number_of_bytes:
      raise ValueError("partitions can not > number_of_bytes!"				)
   snake_case_            =       number_of_bytes // partitions
   snake_case_            =       []
   for i in range(lowerCAmelCase_				):
      snake_case_            =       i * bytes_per_partition + 1
      snake_case_            =       (
          number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
      )
      allocation_list.append(F'''{start_bytes}-{end_bytes}'''				)
   return allocation_list


if __name__ == "__main__":
   import doctest

   doctest.testmod()




