| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
5 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
1.3 E xceptions Even if a statement or expression is synt... |
6 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
7 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
4 KeyboardInterrupt It is raised when the user accidental... |
8 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
9 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
handlers are designed to execute when a specific exceptio... |
10 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
11 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
As we can see in Figure 1.6, in addition to the error mes... |
12 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
13 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
print(number*number) print (negativecheck(100)) print (ne... |
14 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
15 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
of the important points regarding exceptions and their ha... |
16 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
17 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
executing a suitable handler is known as catching the exc... |
18 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
19 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
handled in the except block. While writing or debugging a... |
20 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
21 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
statement following the try..except block is executed and... |
22 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
23 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
Inthecode,twotypesofexceptions(ZeroDivisionError and Valu... |
24 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
25 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
only if some exception is raised in the try block. But if... |
26 |
|
Delete Content |
| Chapter 1 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
27 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
Program 1-6 Use of finally clause print ("Handling except... |
28 |
|
Delete Content |
| Chapter 1 - Computer Science |
text |
While executing the above code, if we enter a non-numeric... |
30 |
|
Delete Content |