To split the number correctly based on your requirement, you should use a different approach that considers the count of digits in the number. Here's a Python function that does that:
Code:
def split_number(number, linecnt):
number_str = str(number)
result = []
if linecnt == 12:
for i in range(0, len(number_str), 2):
result.append(int(number_str[i:i+2]))
elif
Leave a comment: