Name

else

Examples
for i in range(5, 95, 5): 
    if i < 35:
        line(30, i, 80, i)
    else:
        line(20, i, 90, i)
for i in range(5, 95, 5): 
    if i < 35:
        line(30, i, 80, i)
    elif i < 65:
        line(20, i, 90, i)
    else:
        line(0, i, 100, i)
Description
Syntax
if expression:
  statements 
else:
  statements 

if expression:
  statements 
elif expression:
  statements 
else:
  statements 
Parameters
expression
statements
Related if
if
Updated on Wed Jan 18 17:32:20 2017.
Creative Commons License