





'''simple docstring'''






from __future__ import annotations
def   UpperCamelCase__ (						lowerCAmelCase				,      lowerCAmelCase    ):





      """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!"""    )
      _lowerCAmelCase					=				number_of_bytes // partitions
      _lowerCAmelCase					=				[]
      for i in range(lowerCAmelCase    ):
            _lowerCAmelCase					=				i * bytes_per_partition + 1
            _lowerCAmelCase					=				(
                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()













'''simple docstring'''






def   UpperCamelCase__ (						lowerCAmelCase				,      lowerCAmelCase    ):





      """simple docstring"""


      _lowerCAmelCase					=				""""""
      for word_or_phrase in separated:
            if not isinstance(lowerCAmelCase				,      lowerCAmelCase    ):
                  raise Exception("""join() accepts only strings to be joined"""    )
            joined += word_or_phrase + separator
      return joined.strip(lowerCAmelCase    )


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

      testmod()






