If Else Statement
Decision making is about deciding the order of execution of statements based on certain conditions or repeat a group of statements until certain specified conditions are met.
The if statement in Python is used to perform operations on the basis of condition. By using if-else statement, you can perform an operation either the condition is true or false.
There are many ways to use if statement in Python:
- If statement
- If-else statement
- Nested if Statement