

"""simple docstring"""




from __future__ import annotations
def 	lowerCAmelCase    (       __UpperCamelCase				,     __UpperCamelCase   ):
 '''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!"""   )
 UpperCAmelCase__       :	Any        =       number_of_bytes // partitions
 UpperCAmelCase__       :	List[Any]        =       []
 for i in range(__UpperCamelCase   ):
  UpperCAmelCase__       :	List[Any]        =       i * bytes_per_partition + 1
  UpperCAmelCase__       :	Union[str, Any]        =       (
      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'''

import baseaa







def __UpperCamelCase( _A       :					str     ):
   '''simple docstring'''
   return baseaa.baaencode(string.encode('''utf-8'''     )     )







def __UpperCamelCase( _A       :					bytes     ):
   '''simple docstring'''
   return baseaa.baadecode(_A     ).decode('''utf-8'''     )


if __name__ == "__main__":
  UpperCamelCase__  :						List[str]					=      'Hello World!'
  UpperCamelCase__  :						str					=      baseaa_encode(test)
  print(encoded)

  UpperCamelCase__  :						int					=      baseaa_decode(encoded)
  print(decoded)




