After seeing the discussion here: Python - generate the time difference I got curious. I also initially thought that a generator is faster than a list, but when it comes to
There's no way to sort a sequence without knowing all the elements of the sequence, so any generator passed to sorted() is exhausted.
sorted()