Thanks for your input. As you can see I actually ended up using that in the next problem. I'm a little torn over how I should interpret each of the problems. I'm tempted to just leave things at the iterator level since they are such a nice tool and python is moving that way any way.
2 comments:
Or:
my_list[::-1]
Gives a copy of my_list in reverse order, as a list.
- Paddy.
Thanks for your input. As you can see I actually ended up using that in the next problem. I'm a little torn over how I should interpret each of the problems. I'm tempted to just leave things at the iterator level since they are such a nice tool and python is moving that way any way.
Post a Comment