Introduction
If-else helps your program make choices. It runs one set of instructions if something is true, and another set if it is not.
Deciding what to do based on user input, like checking if a password is correct.
Choosing different actions depending on the time of day, like saying good morning or good evening.
Checking if a number is positive or negative and acting accordingly.
Showing a message if a list is empty or has items.