x='abcdefghijklmnopqrstuvwx' xlist=[] for i in range(0,len(x),3): xlist.append(x[i:i+3]) print(xlist)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)