← All examples Sum 1..n Python Loops for + range Flowchart (ISO 5807) Flowchart Structogram StartInput ns = 0i = 1, n, 1s += iReturn sEndFigure 1 — total Fit width 100% Fullscreen Source code def total(n): s = 0 for i in range(1, n + 1): s += i return s Open in the editor Next All flowcharts for Python All example flowcharts How to make a flowchart from code Flowchart to the standard: full guide Flowchart for coursework Nassi-Shneiderman structograms