Situations in python helps us in some ways as they’re the block of code during which we will specify some situation within the code to be carried out.
The if assertion exhibits a code for a call making assertion. ‘if’ is the key phrase and ended by ‘:’ on the finish.
The output for above instance is
The elif situation signifies that if the earlier situation shouldn’t be glad then elif assertion will probably be checked. The ‘elif’ is the key phrase and ended by colon.