codeGK
Code it ALL
Else in Python - CodeGK

♦ Else in Python

♣ Example3: Else in Python

else condition block is executed when all prior conditions(if condition, elif condition(s)) are false.
Example
Input:
Output:
If_elif_else