E
Size: a a a
E
E
БГ
py3
from functools import reduce
list_ = [0,1,3]
reduce(lambda a, b: b if a + 2 == b else None, list_)
Traceback (most recent call last):
File "1578078310/source.py", line 3, in <module>
reduce(lambda a, b: b if a + 2 == b else None, list_)
File "1578078310/source.py", line 3, in <lambda>
reduce(lambda a, b: b if a + 2 == b else None, list_)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
E
py3
from functools import reduce
list_ = [0,1,3]
reduce(lambda a, b: b if a + 2 == b else None, list_)
Traceback (most recent call last):
File "1578078310/source.py", line 3, in <module>
reduce(lambda a, b: b if a + 2 == b else None, list_)
File "1578078310/source.py", line 3, in <lambda>
reduce(lambda a, b: b if a + 2 == b else None, list_)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
E
БГ
AT
AT
E
AT
E
E
C
E
E
C
C
E
C
C