jac0117

4 Reputation

2 Badges

15 years, 170 days

MaplePrimes Activity


These are questions asked by jac0117

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]]

 

 

Page 1 of 1