Decisions in a program are used when the program has conditional choices to execute code block. Let’s take an example of traffic lights, where different colors of lights lit up at different situations based on the conditions of the road or any specific rule.
It is the prediction of conditions that occur while executing a program to specify actions. Multiple expressions get evaluated with an outcome of either TRUE or FALSE. These are logical decisions and Python also provides decision-making statements that to make decisions within a program for an application based on the user requirement.
0 Comments
If you have any doubts,please let me know