The else block in Python executes when:
-
A
if is true
-
B
if is false
Correct answer
-
C
Always
-
D
Never
Correct answer
B. if is false
11 views
Explanation
The else block executes when the if condition is false. Source: Standard Python content (FBISE-aligned).
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ