Practical File
Practical File
R International School
ACADEMIC YEAR 2024-2025
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
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