>>> from anagrames import obteNoms >>> it = obteNoms(['tomasnenan', 'staanmonen','satanmonen','tomasnenna'], 5) >>> next(it) 'tomas' >>> next(it) 'satan' >>> next(it) 'tomas' >>> next(it) Traceback (most recent call last): ... StopIteration