title : Control Flow

Control FLow

The If statement

# Simple IF statement
if(condition){
    #execute if condition is true
}

If else


if(condition){
    #execute code if condition is true
} else {
    # execute code if condition is not true.
}

elif

if(condition){
     #execute code if condition is true
} 
elif(condition 2){
     #execute code if condition 2 is true
}
elif(condition 3){
     #execute code if condition 3 is true
}
else {
     #execute code if none of the conditions are true
}