N-grams

srinivas devaki mr.eightnoteight at gmail.com
Thu Nov 10 10:52:40 EST 2016


On Thu, Nov 10, 2016 at 2:26 PM, Peter Otten <__peter__ at web.de> wrote:
>
> I don't think I've seen tee(iterable, 1) before. Did you do this for
> aesthetic reasons or is there an advantage over
>
>       t = [iter(iterable)]

Yeah just to be aesthetic, there's no extra advantage over that as
with n=1 tee just returns a wrapper around the iterable.


Regards
Srinivas Devaki
Senior (4th year) student at Indian Institute of Technology (ISM), Dhanbad
Computer Science and Engineering Department
phone: +91 9491 383 249
telegram: @eightnoteight



More information about the Python-list mailing list