today I learned you can do stuff like this in python
tuple(i for i in range(10))
sum(i for i in range(10))
the function gets a generator passed into it
EDIT: the thing I didn't know about was generator comprehensions without brackets, not that you can pass generators into things