Python: Is there a way to split a string of numbers into every 3rd number?

list, python

Solution

>>> a="123456789"
>>> [int(a[i:i+3]) for i in range(0, len(a), 3)]
[123, 456, 789]

Problem

For example, if I have a string a=123456789876567543 could i have a list like... 123 456 789 876 567 543

Original source