CBSE Class 11 Computer Science
Question 130 of 173
Data Handling — Question 19
Back to all questions 19
Question Question 15a
Following expression does not report an error even if it has a sub-expression with 'divide by zero' problem:
3 or 10/0What changes can you make to above expression so that Python reports this error?
Answer
Interchanging the operands of or operator as shown below will make Python report this error:
10/0 or 3