Question: Break string into substrings

How can I break a string into substrings of a given length and store the substrings into a list.

 

i.e.

my string is `i love going to the movies`;

and i want the substring size to be 2

so my list L would look something like this

 

L = [[i ],[lo],[ve],[ g],[oi],[ng],[ t],[o ],[th],[e ],[mo],[vi],[es]]

 

 

Please Wait...