Skip to content

Named lambda

Python name = lambda → separate diagram

Flowchart (ISO 5807)

YesNoStartInput nn mod 2 = 0Return «парне»EndReturn «непарне»EndFigure 1 — classify

Source code

Python
classify = lambda n: "парне" if n % 2 == 0 else "непарне"

The editor opens with this code — change it and the chart redraws.

Language
Python
Constructs
name = lambda → separate diagram
Topic
Lambdas
Formats
Word, Visio, draw.io, PDF, SVG

Related examples