if and else statement is an build in function to check through a list of items while there are many condition, have you ever being in a situation where you have to choose something? this is what the if and else statement is for. if you don't want an item you must wanted another one, but if you do wanted this item, after you selected the item there are more things you could done with the item you choose which you could have met another if and else.
First you would have a situation where there are lots of options, this is where the if comes in, in python starting with if you have to work with and condition where you work it together with the logical condition of equals, not equals, and, or , less than , greater than … all there operators helps you identifies and create a specific route for users to go through to pick the best one for the user. Just like when you are shopping on line, you would have filters to go through which for example you pick a shoes , you would have to pick what kind of the shoes you wanted, and afterward you would have to choose if its new or old. all these condition met together to help and work through the rest of the program.