0% found this document useful (0 votes)
9 views5 pages

C21ug143csc013 21ucsp07 25.3.24

The document contains coding examples for a for loop that prints each letter of specified strings, including 'python', 'network security', and 'computer graphics'. It also includes exception handling code that demonstrates errors such as zero division, array index out of bounds, and file not found exceptions. The outputs for each section illustrate the results of the coding examples and the errors encountered.

Uploaded by

Shanmuga Priya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views5 pages

C21ug143csc013 21ucsp07 25.3.24

The document contains coding examples for a for loop that prints each letter of specified strings, including 'python', 'network security', and 'computer graphics'. It also includes exception handling code that demonstrates errors such as zero division, array index out of bounds, and file not found exceptions. The outputs for each section illustrate the results of the coding examples and the errors encountered.

Uploaded by

Shanmuga Priya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

NAME: K.

GOMATHI

REG:NO:C21UG143CSC013

PAPER CODE:21UCSP07

1 (B) FOR LOOP

CODING :

OUTPUT:

The following lines will print each letters ofpython

o
n

The following lines will print each letters of:network security

The following lines will print each letters ofcomputer graphics

m
p

>>>

2 (A) EXCEPTION HANDLING

CODING:
OUTPUT:

~~~~~~~~~~~~~~~~Zero divisibal error~~~~~~~~~~~

Enter the numerator:

55

Enter the denominator:

Error:denominator cannot be 0.

~~~~Array index out of bound~~~~

Index out of bound.


~~~~~~File not bound Exception~~~~~~~~

file not found

>>>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy