if condition :#-- true block (indented) #-- next statement (not indented) |
if condition :#-- true block (indented) else: #-- false block (indented) #-- next statement (not indented) |
if condition-0 : #-- block-0 (indented) elif condition-1 : #-- block-1 (indented) #-- other elif blocks go here elif condition-n : { #-- block-n (indented) else: #-- default block (indented) #-- next statement |
while condition :#-- loop body (indented) #-- next statement |