1""" 2categories: Modules,builtins 3description: Second argument to next() is not implemented 4cause: MicroPython is optimised for code space. 5workaround: Instead of ``val = next(it, deflt)`` use:: 6 7 try: 8 val = next(it) 9 except StopIteration: 10 val = deflt 11""" 12print(next(iter(range(0)), 42)) 13