--ini-enunciat >>> from clientela import seq_moviments, calcula_clients >>> it = seq_moviments('porta1.txt') >>> itc = calcula_clients(it) >>> next(itc) (datetime.time(9, 5), 2) >>> next(itc) (datetime.time(9, 10), 3) >>> for temps, nc in itc: ... print(temps, nc, end='...') 09:30:00 2...09:33:00 5...09:44:00 3...10:07:00 1...10:23:00 0... --fi-enunciat >>> it = seq_moviments('porta3.txt') >>> itc = calcula_clients(it) >>> for temps, nc in itc: ... print(temps, nc, end='...') 09:08:00 3...09:21:00 6...09:42:00 3...09:51:00 7...10:22:00 6...10:36:00 2...10:40:00 1...10:45:00 5...10:48:00 7...10:55:00 10...11:05:00 6...11:10:00 3...11:47:00 2...12:09:00 0...12:00:00 1...12:22:00 5...12:33:00 1...12:44:00 3...12:58:00 4...13:00:00 1...