Python: generator basic example: firstn