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

Practical File

Uploaded by

dabasharsha41
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Practical File

Uploaded by

dabasharsha41
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 39

G.

R International School
ACADEMIC YEAR 2024-2025

COMPUTER SCIENCE (083)


REPORT FILE
CLASS-XII

Python programs and SQL queries

Submitted by:
Submitted to:
Name - Harsha
Mr.Yogendar sir
Roll no.
Certificate
This is to certify that Harsha of Class XII
Science has successfully completed their
computerScience (083) Report File under the
guidance of Mr.Yogendar (CS teacher)
during the Academic year 2024-25.
The report file contains python programs, SQL
queries and python-SQL interface programs.

Internal examiner
External examiner
INDEX
S.n Python programs Sig
o n
1. Write a random number generator that
generates random number between 1
to 6(simulates a dice).
2. Read a text file line by line and display
each word separated by a #
3. Read a text file and display the number
of
vowels/consonants/uppercase/lowercas
e characters in file
4. Creating python program to display
short words from a text file.
5. Creating a python program to copy
particular lines of a text file Into an
another text file

6. Creating a python program to create


and search records in binary file.
7. Creating a python program to create
and update/modify records in binary
file.
8. Creating a python program to create
and search employee’s record in csv
file.
9. Creating a python program to
implement stack operations (List).
10. Creating a python program to
implement stack operations
(Dictionary).

11. Creating a python program to integrate


MYSQL with Python (Creating database
and table)
12. Creating a python program to integrate
MYSQL with Python (Inserting records
and displaying records)
13. Creating a python program to integrate
MYSQL with Python (Searching and
displaying records)
14. Creating a python program to integrate
MYSQL with Python (Updating records)

15. Sql commands exercise – 1

16. Sql commands exercise – 2


17.
Sql commands exercise – 3
18.
Sql commands exercise – 4
19.
Sql commands exercise – 5
Program – 1
Aim- To write a random number generator that
generates random number between 1 to
6(simulates a dice).
SOURCE CODE:

OUTPUT
Program – 2
Aim- To Read a text file line by line and display
each word separated by a #
SOURCE CODE:

OUTPUT
Program – 3
Aim- To Read a text file and display the number
of vowels/consonants/uppercase/lowercase
characters in file
SOURCE CODE:

OUTPUT
Program – 4
Aim- To Create python program to display short
words from a text file
SOURCE CODE:

OUTPUT
Program – 5
Aim- To creating a python program to copy
particular lines of a text file Into an another text
file
SOURCE CODE:

OUTPUT
Program – 6
Aim- To Create a python program to create and
search records in binary file.
SOURCE CODE:
OUTPUT
P
rogram – 7
Aim- To Create a python program to create and
update/modify records in binary file.
SOURCE CODE:
OUTPUT
Program – 8
Aim-To Create a python program to create and
search employee’s record in csv file.
SOURCE CODE:

OUTPUT
Program – 9
Aim- To Create a python program to implement
stack operations (List).
SOURCE CODE:
OUTPUT
n
Program – 10
Aim- To Create a python program to implement
stack operations (Dictionary).
SOURCE CODE:
OUTPUT
Program – 11
Aim- Creating a python program to integrate
MYSQL with Python (Creating database and table)
SOURCE CODE:
OUTPUT
Program – 12
Aim- Creating a python program to integrate
MYSQL with Python (Inserting records and
displaying records)
SOURCE CODE:

OUTPUT
Program – 13
Aim- Creating a python program to integrate
MYSQL with Python (Searching and displaying
records)
SOURCE CODE:
OUTPUT

Program – 14
Aim- Creating a python program to integrate
MYSQL with Python (Updating records)
SOURCE CODE:
OUTPUT
Program – 15
Program – 16
Program – 17
Program – 18
Program – 19

You might also like