Python - Decision Making
There are so many situations in the real life when we need to make some decisions and based on these decisions we have to decide what we should do next. Similar situations appear in programming also where we need to make some decisions and based on these decision we will execute the next block of code.
Decision making is an anticipation of conditions occurring while execution of the program and specifying actions taken according to the conditions.
Decision making statements in programming languages decides the direction of flow of program execution.
Following are the python Decision making statements:
· if statement
· if..else statements
· nested if statements