0% found this document useful (0 votes)
2 views

Practical File

The document is a practical file for a 12th-grade computer science student named Aaryan Saini, submitted to Arpita Srivastava. It includes a series of programming tasks such as finding factorials, printing odd numbers, handling exceptions, reading file content, counting even numbers, creating a CSV file, and implementing stack operations in Python. Each task is outlined with sections for input and output, though specific examples are not provided.
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)
2 views

Practical File

The document is a practical file for a 12th-grade computer science student named Aaryan Saini, submitted to Arpita Srivastava. It includes a series of programming tasks such as finding factorials, printing odd numbers, handling exceptions, reading file content, counting even numbers, creating a CSV file, and implementing stack operations in Python. Each task is outlined with sections for input and output, though specific examples are not provided.
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/ 10

Computer Science

Practical File

Name – Aaryan Saini


Grade - 12th Non-Medical
Submitted to - Arpita Srivastava
Index
1. Write a program to create a
function to find the factorial of any
number.

2. Write a program to print the odd


number between the specified
range using a function.

3. Write a program to handle different


types of exceptions that occur
during dividing a number.

4. Program to read and display file


content line by line with each word
separated by “#”.

5. Write a program to create a list of


numbers, find the count of even
numbers from the list.

6. Program to create CSV file and


store empno, name and salary of
an employee and search for any
empno to display the employee’s
name and if not found, display the
appropriate message.

7. Program to implement Stack


operation to add and delete
elements from the stack in Python.
1) Write a program to create a function to find the factorial of any number.

Input-

Output-
2) Write a program to print the odd number between the specified range
using a function.

Input-

Output-
3) Write a program to handle different types of exceptions that occur
during dividing a number.

Input-

Output-
4) Program to read and display file content line by line with
each word separated by “#”.

Input-

Output-
5) Write a program to create a list of numbers, find the count of even
numbers from the list.

Input-

Output-
6) Program to create CSV file and store empno, name and salary of an
employee and search for any empno to display the employee’s name and if
not found, display the appropriate message.

Input-

Output-
7) Program to implement Stack operation to add and delete elements from
the stack in Python using List.

Input-
Output-

You might also like