What is the python reserved word that we use in two-way if tests to indicate the block of code that is to be executed if the logical test is false?
Answers
Answered by
14
Answer:
Sry I didn't know the answer to
Answered by
2
else is the python reserved word that we use in two-way if tests to indicate the block of code that is to be executed if the logical test is false.
Explanation:
- In conditional statements (if statements), the else keyword determines what to do if the condition is False.
- Except for blocks, the else keyword in Python is used in conditional statements like if statements, and it determines what to do if all of the conditions are False.
- Loops are used with the other keyword. You can use the else keyword in a loop in addition to using it with conditional if expressions.
Similar questions
Computer Science,
6 months ago
English,
6 months ago
Chemistry,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Social Sciences,
1 year ago
Science,
1 year ago