I am looking for a good way to get every pair from a string. For example,
input:
x = 'apple'
output
'ap'
'pp'
'pl'
'le'

I am not seeing a obvious way to do this without multiple for loops, but
maybe there is not :-)
In the end I am going to what to get triples, quads....... also.

Thanks
Vincent
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to