0% found this document useful (0 votes)
2 views31 pages

Report File

The document is a practical file for a 12th-grade Computer Science student named Ashish Ranjan, guided by Mr. Ajay Sir. It includes various Python programming tasks such as working with functions, using libraries, file handling, stack implementation, and CSV handling, as well as MySQL database connectivity examples. The file serves as a certification of the student's completion of the Computer Science practical requirements.

Uploaded by

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

Report File

The document is a practical file for a 12th-grade Computer Science student named Ashish Ranjan, guided by Mr. Ajay Sir. It includes various Python programming tasks such as working with functions, using libraries, file handling, stack implementation, and CSV handling, as well as MySQL database connectivity examples. The file serves as a certification of the student's completion of the Computer Science practical requirements.

Uploaded by

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

A V public

D s
en n
DAV public
sc ch
s r
se h
o
o o
r A
g l
o
g l
A

NAME: -Ashish Ranjan.


CLASS: - 12th “Science”
ROLL NO.: -21.
SUBJECT:- Computer
Science.

Guided By Mr.Ajay Sir.


CERTIFICATE
This is to certifY
that_____________. student of
Class XII Science / Commerce has
successfully completed
their computer Science (New-083)
Practical File.

Internal Examiner External Examiner


REPORT
FILE
PYTHON
1. Working with Functions
1 Factorial using Recursion.

2 Fibonacci Sequence using Recursion


3 Prime Number Check

4. Calculate the Power of a Number


2. Using Python Libraries
5.Math Library: Calculate GCD

6. Random Library: Dice Simulation

7. Datetime Library: Current Date and Time


8. Statistics Library:Mean,Median,Mode
3. File Handling
9. Write and Read from a Text File

10. Count Lines, Words, and Characters in a File


11. Append Data to a File

12. Count Specific Word Occurrences in a File


4. Stack Implementation
13. Stack Using List

14. Reverse a String Using Stack


5. CSV Handling
15. Write and Read from a CSV File

16. Find Average from a CSV File


MySQL
1. CARS
OUTPUT
2. Employees
OUTPUT
3. Teachers
OUTPUT
4. Students
OUTPUT
5. ProductsDB
OUTPUT
MySQL
&
Python
1. Write up python program that displays first
three rows fetched from student table of Mysql
database “Test”.

2. Write a python program that displays first


three rows fetched from student table of mysql
database test use PyMysql to connect with the
database
3. Which record will get inserted in the table by
following code.

4. Write a python database connectivity script that


deletes records from category table of database
items that have name= stock table
5. Connect my SQL with Python and create
database

6. Write a python code to display all the records


of emp table in Mysql
Thank
🙏
You!

You might also like