test_str = “Put your letters here but without spaces”
separator = ” ”
res = ” “
#Change the sixes to the length of the blocks of letters/characters you want
for i in range (0, len(test_str), 6):
res += test_str[i:i + 6] + separator
res = res [:-1]
print(res)