No, they do not match.
if statement: if statement:
If the first instruction is correct, its code will be executed. In addition, if the second statement is correct, its code will be executed.
if statement: elif statment:
The second block will be executed only if the first of them was not, and the second check is correct.
if statement: else:
The first instruction will be executed if it is true, and the second will be executed if the first is false.
Christian stewart
source share