


"""simple docstring"""




from __future__ import annotations

def        lowercase							(		lowerCAmelCase__ :     int    ,					lowerCAmelCase__ :     int			) ->      list[str]:
		if partitions <= 0:
				raise ValueError('''partitions must be a positive number!'''			)
		if partitions > number_of_bytes:
				raise ValueError('''partitions can not > number_of_bytes!'''			)
		__a           =			number_of_bytes // partitions
		__a           =			[]
		for i in range(lowerCAmelCase__			):
				__a           =			i * bytes_per_partition + 1
				__a           =			(
				    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        lowercase							(		lowerCAmelCase__ :     str    ,					lowerCAmelCase__ :     list[str]			) ->      str:
		__a           =			''''''
		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()






