What are the various decision making statements in Python ?
Answers
Answered by
4
Answer:
In Python there are three types of decision making statement.
if statements.
if-else statements.
Nested if-else statement.
Use Of 'if' condition And 'and' Operator In Python.
Use Of 'if' condition And 'or' Operator In Python.
Use Of 'if' condition And 'not' Operator In Python.
Answered by
0
Decision-making statements in Python
In Python, there are three different sorts of decision-making statements.
- If Statement - The if statement is made up of a condition and a block of sentences. If the condition is True, the block of statements is executed; otherwise, it is not.
- If-Else Statement — The If-else statement has two blocks of statements: if-block and else-block, and it has a condition. If the condition is True, the interpreter runs the if-block, and if it is False, the interpreter runs the else-block.
- Elif Statement — The Elif statement is a series of if-else statements stacked on top of each other.
Similar questions