Python supports if-elif-else statements to test additional conditions apart from the initial test expression. This is also known as the nested-if construct. The syntax of if-elif-else statement is given below: if(condition 1): statement block 1 elif(condition 2): statement block 2 ...
Home/if-elif-else statement