Level exam: work sessions from a click log
Your task Ticket PY-330, for the product analyst. A user's clicks come as a sorted stream of times in seconds. A session is a run of clicks where each click is at most gap seconds after the one before it. Write a generator function sessions(times, gap) that yields each session as a list of times, in order. In the code box, write the function, then press Run my code.
Getting the editor ready
