Flow Control: if, elif, else: Revision history

From Master of Neuroscience Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 October 2025

15 October 2025

  • curprev 10:5910:59, 15 October 2025 Davrot talk contribs 1,127 bytes +1,127 Created page with " == The goal == If I would have… Questions to [mailto:davrot@uni-bremen.de David Rotermund] '''Logic blocks need to be indented.​ Preferable with 4 spaces!''' == [https://docs.python.org/3/reference/compound_stmts.html#the-if-statement The if statement] == <syntaxhighlight lang="python">if i == 1:​ print("if")​ elif i == 2:​ print("elif brach A")​ elif i == 3:​ print("elif brach B")​ else:​ print("else -- default")​</syntaxhighlight..." Tag: Visual edit