Not sure if this is out-of-date, but several things here did not work for me. To begin with, it took me some time, but count() creates an object that is not a list or tuple? What is that? Also, for isslice(), I'm getting "TypeError: islice() takes no keyword arguments". For tee(), I'm getting "invalid syntax" and an arrow pointing to n=2.