if… elif …else is a multiple judgment statement, which is more useful when multiple conditions are required for comparison during program design. The basic syntax of this statement is as follows:
If the condition is determined one is True , then the execution program code segments a , and then exit condition is determined; otherwise, check condition determination 2 . If it is True , the program code segment 2 is executed , and then the condition judgment is left. If the condition is False ,
Then continue to check, the above elif conditional judgment can be continuously expanded, if all the conditional judgments are False, execute