them to introduce bug remember that the rest of the elif clauses are automatically skipped once true condition has been foundso if you swap around some of the clauses in vampire pyyou run into problem change the code to look like the followingand save it as vampire pyname 'carolage if name ='alice'print('hialice 'elif age print('you are not alicekiddo 'elif age print('you are not alicegrannie 'elif age print('unlike youalice is not an undeadimmortal vampire 'you can view the execution of this program at say the age variable contains the value before this code is executed you might expect the code to print the string 'unlike youalice is not an undeadimmortal vampire howeverbecause the age condition is true (after all , is greater than the string 'you are not alicegrannie is printedand the rest of the elif statements are automatically skipped remember that at most only one of the clauses will be executedand for elif statementsthe order mattersfigure - shows the flowchart for the previous code notice how the diamonds for age and age are swapped optionallyyou can have an else statement after the last elif statement in that caseit is guaranteed that at least one (and only oneof the clauses will be executed if the conditions in every if and elif statement are falsethen the else clause is executed for examplelet' re-create the alice program to use ifelifand else clauses name 'carolage if name ='alice'print('hialice 'elif age print('you are not alicekiddo 'elseprint('you are neither alice nor little kid 'you can view the execution of this program at /littlekidfigure - shows the flowchart for this new codewhich we'll save as littlekid py in plain englishthis type of flow control structure would be "if the first condition is truedo this elseif the second condition is truedo that otherwisedo something else when you use ifelifand else statements togetherremember these rules about how to order them to avoid bugs like the one in figure - firstthere is always exactly one if statement any flow control