cunqa.result.divide
- cunqa.result.divide(string: str, lengths: list[int])
Divides a string of bits in groups of given lenghts separated by spaces.
Args:
string (str): string that we want to divide.
lengths (list[int]): lenghts of the resulting strings in which the original one is divided.
Return:
A new string in which the resulting groups are separated by spaces.