0% found this document useful (0 votes)
6 views20 pages

Python Practical File for XIIth Class

Uploaded by

umarsvvbasti
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)
6 views20 pages

Python Practical File for XIIth Class

Uploaded by

umarsvvbasti
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

C D A A C

A D E M Y

Computer Practical File (2025-26)

SUBMITTED BY : DHAWAL
UPADHYAY
ROLL No. :
SUBMITTED TO : MR.
PANKAJ DWIVEDI SIR
CLASS : XIIth
CERTIFICA
TE
This is to certify that DHAWAL

UPADHYAY whose Roll Number is

; Of class XIIth has

successfully completed this computer

practical file prescribed by

MR PANKAJ DWIVEDI SIR, during


academic session 2025-26 as per the
guidelines issues by Central Board of
Secondary Education(C.B.S.E.).

Project Incharge
MR PANKAJ DWIVEDI SIR
With profound gratitude, I express my heartfelt thanks to the
Almighty God for bestowing upon me the wisdom, strength, and
perseverance to successfully complete this Python programming
practical file. This endeavor has significantly enriched my technical
proficiency and deepened my understanding of programming.
I extend my deepest appreciation to MR PANKAJ DWIVEDI
SIR, whose exemplary guidance, profound expertise, and
unwavering encouragement have been instrumental in navigating
the intricacies of Python programming. Their insightful mentorship
and constructive feedback have greatly elevated the quality of this
work.
I am also sincerely grateful to my peers and friends for their
collaborative spirit, engaging discussions, and invaluable critiques,
which have refined my approach and enhanced the outcomes of
this project.
My heartfelt thanks go to my family for their steadfast support,
boundless patience, and constant motivation, which have been an
unwavering pillar of strength throughout this academic journey.
Additionally, I acknowledge the invaluable resources provided by
the official Python documentation and various online programming
communities, whose comprehensive insights and solutions were
pivotal in overcoming technical challenges.
This practical file stands as a testament to divine guidance,
collective support, and my dedicated efforts. I am immensely
thankful to all who have contributed to this achievement.

With sincere appreciation


Dhawal upadhyay b
INDEX

[Link] DATE DESCRIPTION PAGE. NO SIGNATURE

1. Input any number from user and calculate factorial 1


of a number.

2 Input any number from user and check it 2


is prime no. or not .

3 Write a program to find sum of elements of list 3


recursively

4 Write a program to calculate the nth 4


term of Fibonacci series.

5 Program to search any word in given 5


string/sentence.

6 Program to read and display file content 6


line by line with each word separated by
"#".

7 Program to read the content of file and display the 7


total number of consonants, uppercase,vowels and
lower
case character.

8 Program to create binary file to store roll no. and 8-9


names , search any roll no. and display if roll no
found otherwise roll no. not found.

9 Program to create binary file to store roll no, name 10-11


and marks and update marks of entered roll no.

10 Program to read the content of file line by line and 12


write it to another file except for the lines contain
'a' letter in it.
[Link] DATE DESCRIPTION PAGE. NO SIGNATURE

11. Program to create CSV file and store empno, 13-14


name , salary and search any empno and display
name salary and if not found appropriate message.

12 Program to generate random number 1- 6, 15


simulating a dice .

13 Program to implement stack in python using list . 16-19

14 Python to implement queue in python using list. 20-22

15 Program to take 10 sample phishing email and find 23


the most common word occuring.

16 Program to create 21 stick game so that computer 24-26


always wins.

17 Program to connect with database and store 27-28


records of employees and display records.

18 Program to connect with database and search 29


employee number in table employee and display
record, if empno not found display appropriate
message.

19 Program to connect with database and update the 30-31


employee record of entered empno.

20 Program to connect with database and delete the 32


record of entered employee number.
[Link]

<html><head><title>Admission Overview</title><link rel="stylesheet" href="[Link]"></head>

<body><div class="my_menu"><ul class="menu"><li class="Universal"><a href="Why [Link]">Why


Universal?</a></li><li class="Admission"><a href="#">Admission</a><ul><li><a href="[Link]">Admission
Overview</a></li><li><a href="[Link]">Online Admission</a></li> </ul></li><li class="gallery"><a
href="[Link]">Home</a></li>

<liclass="virtual"><ahref="[Link]
otosphere?iu=[Link]
cb_client%[Link]%26w%3D160%26h%3D106%26yaw%3D266.9562%26pitch%3D0%26thumbfov%3D100&i
k=CAISFmhUcUZSM1A5bktZT2N4RFJWSkVONnc%3D">Virtual Tour</a></li>

<li class="Boarding"><a href="[Link]">FAQs</a></li><li class="Professional"><a href="[Link]">Contact


Us</a></li></div>

<img src="[Link]" align="left" width="200px" height="350px">

<b><i><font size="10">When you apply for admission at Universal Public School, you open a world of opportunities
for your child. We at Univrsal Public School School believe in a constant educational evolution and impart skills that
truly matter.</font></i></b> <br>font size="10" color="red"><b>Apply Online for Admission : The Run-
through</b></font><br><br><br>

<p><font size="5">When you choose the admission application for a school, you go through a structured, simple,
and systematic process to become a part of a community of lifelong learners and achievers. Following the online
admission process, you and your child are welcomed to the UPS campus to meet a member of the school’s
admission team, including the Principal/ Coordinator. This interaction aims to develop a three-way partnership
between the school, children, and parents, who mutually determine the best way forward for the student.

Added to this, when you come for primary school admissions or boarding school admissions, you’ll get the
opportunity of a comprehensive tour of our 30-acre residential campus, helping in your school admission journey.
At Universal Public School, you can enroll your child as a day or boarding student (we also provide the option of
weekly boarding).

UPS is one of the best schools in Loharsan that has a cohesive curriculum where essential life skills are considered at
par with the standard subjects, with a nuanced curriculum and skilled faculty to deliver it.

So, fill out the online admission form and get a global schooling experience at GGS. We are excited to meet you and
your child and be a part of your success.

<footer><div class="foot"><font color="white" size="5">Copyright © 2023; All rights reserved , Universal Public
School</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;<font color="orange" size="3">Develped by Umar Teams</font></div></footer></body></html>

(3)
[Link]

<html><head><title>Admission</title><link rel="stylesheet" href="[Link]"></head><body><div


class="my_menu"><ul class="menu"><li class="Universal"><a href="Why [Link]">Why Universal?</a></li>
<li class="Admission"><a href="#">Admission</a><ul><li><a href="[Link]">Admission
Overview</a></li><li><a href="[Link]">Online Admission</a></l></ul></li><li class="gallery"><a
href="[Link]">Home</a></li><li class="virtual"><a
href="[Link]
/[Link]/v1/thumbnail?panoid%3DhTqFR3P9nKYOcxDRVJEN6w%26cb_client%[Link]
[Link]%26w%3D160%26h%3D106%26yaw%3D266.9562%26pitch%3D0%26thumbfov%3D100&ik=CAISFmhUcUZSM1
A5bktZT2N4RFJWSkVONnc%3D">Virtual Tour</a></li>

<li class="Boarding"><a href="[Link]">FAQs</a></li><li class="Professional"><a href="[Link]">Contact


Us</a></li></div><fieldset> <center><h1>UNIVERSAL PUBLIC SCHOOL</h1></center><hr color="red" size="2px">

<center><h2>ADMISSION FORM</h2></center><fieldset><legend>STUDENT
DETAILS</legend><form><table><tr><td> First name </td><td> <input type="text">&nbsp;&nbsp; </td><td>Last
name </td> <td><input type="text"> </td></tr><tr>Father name:</td><td><input type ="text" ></td></tr> <tr>
<td>Postal address:</td><td><input type ="text" ></td></tr> <tr><td>Personal address:</td><td><input type
="text"></td></tr><tr> <td>Gender </td><td> <input type="radio" name="gender"
value="male">male</td><td><input type="radio" name="gender" value="female">female</td></tr><tr<td>Applying
For Grade: </td><td><select>

<option selected>elect the Applying For Grade</option>


<option>Nursery</option>
<option>L.K.G</option>
<option>U.K.G</option>
<option>1<sup>st</sup></option>
<option>2<sup>nd</sup></option>
<option>3<sup>rd</sup></option>
<option>4<sup>th</sup></option>
<option>5<sup>th</sup></option>
<option>6<sup>th</sup></option>
<option>7<sup>th</sup></option>
<option>8<sup>th</sup></option>
<option>9<sup>th</sup></option>
<option>11<sup>th</sup></option>
</select</td></tr><tr><td>State:</td> <td>
<input type="text"></td></tr><tr><td>District:</td><td>
<input type="text"></td></tr><tr><td>Email:</td><td> <input type="text" id</td>
</tr><tr><td>DOB:</td><td><input type="date" </td></tr><tr><td>Mobile no.: </td><td><input type="text">
</td></tr><tr><td> Birth Certificate:</td><td><input type="file"></td></tr></table></fieldset></form><br><br><hr
color="red" size="2px"><h3>Declaration</h3>
<p>I do hereby declare that above details which I have filled are correct and to the best of my knowledge</p><br>
<form><input type="checkbox" required>I Agree<hr color="red" size="2px"><center><tr><td> <input type="submit"
value="reset"></td><td><input type="submit" value="submit"></td></tr></center></form></fieldset><footer><div
class="foot"><font color="white" size="5">Copyright © 2023; All rights reserved , Universal Public
School</font>nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="orange" size="3">Develped by Umar
Teams</font>
</div></footer></body></html> (4)
[Link]
<html><head><title>Frequently Asked Questions</title>

<link rel="stylesheet" href="[Link]">

</head><body bgcolor="yellow">

<div class="my_menu">

<ul class="menu">

<li class="Universal"><a href="Why [Link]">Why Universal?</a></li>

<li class="Admission"><a href="#">Admission</a>

<ul>

<li><a href="[Link]">Admission Overview</a></li>

<li><a href="[Link]">Online Admission</a></li>

</ul></li>

<li class="gallery"><a href="[Link]">Home</a></li>

<li class="virtual"><a href="[Link]


photosphere?iu=https:/
/streetviewpixels- [Link]/v1/thumbnail?panoid%3DhTqFR3P9nKYOcxDRVJEN6w%26cb_client
%[Link]%26w%3D1 60%26h%3D106%26yaw%3D266.9562%26pitch%3D0%26thumbfov
%3D100&ik=CAISFmhUcUZSM1A5bktZT2N4RFJW
SkVONnc%3D">Virtual Tour</a></li>

<li class="Boarding"><a href="[Link]">FAQs</a></li>

<li class="Professional"><a href="[Link]">Contact Us</a></li>

</div>

<center><h1><b><u>Frequently Asked Questions</u></b></h1></center>

<font size="5">

1) When did the School commence?<br>

Universal Public School started its journey in 2018.<br><br><br>

2) Which board School is affliated?<br>

Universal Public School is affliated to C.B.S.E board<br><br><br>

3) What is the Student: Mentor ratio of a class?<br>

Ratio is 25:1 (from grade 2 to grade 12) & 25:2 + 1 nanny (for grade Pre- Nursery to grade 1)<br><br>

(5)
4) How can a Parent reach the Teacher?<br>

SPTM’s are a great time to meet a students Class Teachers. Weekly reports sent by each Class Teacher also help
Parents keep up with what’s happening in school.<br><br>For urgent matters- they can SMS or call the
reception<br>For appointments, they can contact the teachers via SMS/ Emails.<br><br><br>

5) My child is a bit of an introvert… how can the School help him/her to change that?<br>

There is a difference between a shy and an introvert child. A shy child must not be pushed and forced against their
wishes. They should be given more exposure to social events like birthday parties or playing in groups and gently
urged to participate. A child’s shyness is not discussed in front of him/her in the School hours. We try to patiently
cajole them to participate in various school events and behave in a confident manner ourselves so that children can
imitate us. Games and role plays involving social skills are regularly practiced with them.<br><br><br>

6) What security measures have you taken in the school?<br>

The prime focus of our campus security is complete perimeter sanitisation. Strict control on entry is a key to safety
and the school ensures that parents, vehicles, vendors and service providers – use separate manned gates. Round-
the-Clock security of the campus is ensured through over 480 strategically located CCTV cameras monitored
continuously by our security personnel.<br> The Transport facility currently includes 28 buses that are equipped
with a Vehicle Tracking System (VTS) and on board cameras. This allows us to monitor speed, location and geo
fencing of the route. This effectively ensures the safety and security of students on board.<br><br>Each bus is air-
conditioned and is accompanied by a security guard on a rotational basis and a female care giver to pick and drop
children safely from their designated bus stops. Parents/Guardians are expected to carry the Escort Card at all times
during the
pick-up and drop at any given point.</font>

<footer>

<div class="foot">

<font color="white" size="5">Copyright © 2023; All rights reserved , Universal Public School</font>&nbsp;<font
color="orange" size="3">Develped by Umar Teams</font>

</div>

</footer>

</body>

</html>

(6)
[Link]
<html>
<head><title>Student Registration Form</title><link rel="stylesheet" href="[Link]"></head>
<body bgcolor="orange">
<div class="my_menu">
<ul class="menu">
<li class="Universal"><a href="Why [Link]">Why Universal?</a></li>
<li class="Admission"><a href="#">Admission</a>
<ul>
<li><a href="[Link]">Admission Overview</a></li>
<li><a href="[Link]">Online Admission</a></li>
</ul></li>
<li class="gallery"><a href="[Link]">Home</a></li>
<li class="virtual"><a href="[Link]
photosphere?iu=https:/
/streetviewpixels- [Link]/v1/thumbnail?panoid%3DhTqFR3P9nKYOcxDRVJEN6w%26cb_client
%[Link]%26w%3D1 60%26h%3D106%26yaw%3D266.9562%26pitch%3D0%26thumbfov
%3D100&ik=CAISFmhUcUZSM1A5bktZT2N4RFJW
SkVONnc%3D">Virtual Tour</a></li>
<li class="Boarding"><a href="[Link]">FAQs</a></li>
<li class="Professional"><a href="[Link]">Contact Us</a></li>
</div>
<form>
<h1>Contact us</h1>
<p>Share your details and questions, we will be right back. </p>
<br>
<label><b>Student Name</b></label><br>
<input type="text" required>
<br>
<br>
<label><b>Date of Birth</b></label><br>
<input type="date" required>
<br> <br>
<label><b>E-mail</b></label><br>
<input type="email" placeholder="Enter your e-mail" name="email" required>
<br><br>
<label><b>Gender</b></label><br>
<input type="radio" name="gender" value="Male">
<label for="Male">Male</label><br>
<input type="radio" name="gender" value="Female">
<label for="Female">Female</label><br>
<br>

<label><b>Applying For Grade:</b></label><br>


<select>
<option selected>Select the Applying For Grade</option>
<option>Nursery</option>
<option>L.K.G</option>
<option>U.K.G</option>
<option>1<sup>st</sup></option>
<option>2<sup>nd</sup></option>

(7)
<option>3<sup>rd</sup></option>
<option>4<sup>th</sup></option>
<option>5<sup>th</sup></option>
<option>6<sup>th</sup></option>
<option>7<sup>th</sup></option>
<option>8<sup>th</sup></option>
<option>9<sup>th</sup></option>
<option>11<sup>th</sup></option>
</select>
<br>
<br>
<label><b>Select the Current Class:</b></label><br>
<select>
<option selected>Select the Current Class</option>
<option>Home</option>
<option>L.K.G</option>
<option>U.K.G</option>
<option>1<sup>st</sup></option>
<option>2<sup>nd</sup></option>
<option>3<sup>rd</sup></option>
<option>4<sup>th</sup></option>
<option>5<sup>th</sup></option>
<option>6<sup>th</sup></option>
<option>7<sup>th</sup></option>
<option>8<sup>th</sup></option>
<option>10<sup>th</sup></option>
</select>
<br><br>
<label><b>Full Name Of The Current School</b></label><br>
<input type="text"><br><br>
<label><b>Father Full Name </b></label><br>
<input type="text"><br><br>
<label><b>Father Occupation </b></label> <br>
<input type="text"><br><br>
<label><b>Mother Full Name </b></label> <br>
<input type="text"><br><br>
<label><b>Mother Occupation </b></label><br>
<input type="text"><br><br>
<label><b>Email </b></label><br>
<input type="text"><br><br>
<label><b>Student Address </b></label> <br>
<input type="text"><br><br>
<label><b>Phone No. </b></label> <br>
<input type="number"><br><br>
<label><b>Alternate Phone No. </b></label><br>
<input type="number"><br><br>
<input type="button" value="Submit">
</form>
<div class="foot">
<font color="white" size="5">Copyright © 2023; All rights reserved , Universal Public
School</font>&nbsp;&nbsp;<font color="orange" size="3">Develped by Umar Teams</font>
</div>
</body></html>

(8)
#f4801d; backface-visibility:
hidden;
}
[Link]
.Professional a{
body{ paddin background-color: #636363; .menu ul li{ margin:
g: 0px; backface-visibility: hidden; 0px; font-size: 18.5;
margin: 0px; } text-align: left; height:
}
75%;
ul{
}
padding:
.menu ul{ display:
0px; margin:
none;
0px;
}
}
.menu li:hover ul{ display:
.my_menu{
block;
width: auto;
}
height:
.advertisementtext{ width:"9
auto;
9%"; height: 1000px;
}
background-color: #dcd3d3;
.menu li{
}
list-style: none;
.advertisementtext p{ margin:
width:
80px;
253.2px;
color: rgb(76, 36, 96);
height: 50px;
font-size: 30;
font-size: 22;
line-break: 2;
margin: 0px;
}
text-align:
/*---testimonials---*/
center; line-
.testimonials{ width:
height: 50px;
25%; margin: auto;
float: left;
padding-top: 100px; text-
}
align: center;
.menu li
}
a{ color:
.testimonial-col{ flex-basis:
white;
44%; border-radius: 10px;
display:
margin-bottom: 5%; text-
block;
align: left;
text-decoration: none;
background: #fff3f3;
}
padding: 25px; cursor:
.Universal a{
pointer; display: flex;
background-color:
}
#ae1f6e; backface-
.testimonial-col img{ height:
visibility: hidden;
40px; margin-left: 5px;
}
margin-right: 30px; border-
.Admission a{
radius: 50%;
background-color:
}
#337ab7; backface-
marquee{
visibility: hidden;
background-color: chartreuse; height:
}
60;
.gallery a{
}
background-color:
#008544; backface-
visibility: hidden;
}
.virtual a{
background-color:
#71c043; backface-
visibility: hidden;
}
.Boarding a{
background-color:
30px; font-
size: 38px;
color: #081624
}
.
f
o
o
t
{

b
o
r
d
e
r
:

2
p
x
;
background-color: rgb(3,
15, 52);
w
i
d
t
h
:
1
0
0
%
;
h
e
i
g
h
t
:
4
0
p
x
;
}
.univ
ersal
h2{ f
ont-
weig
ht:
300;
margin-
bottom:
BIBLIOGRAPH
Y
The following resources were instrumental in the development and
completion of this Python programming practical file. They provided
essential guidance, reference material, and technical insights that
enriched my understanding and implementation of Python programming
concepts.

1) Sumita Arora, Computer Science with Python. Dhanpat Rai


& Co., 2023.
A comprehensive textbook aligned with the CBSE curriculum, offering
clear explanations and practical examples that guided the
development of Python programs in this practical file.
2) Central Board of Secondary Education (CBSE). Official
CBSE Curriculum and Resources. Available at:
[Link] Accessed September 2025.
The official CBSE website provided syllabus guidelines, sample
questions, and resources that ensured the practical file adhered to
academic standards.
3) National Council of Educational Research and Training
(NCERT). NCERT Resources. Available at: [Link]
Accessed September 2025.
NCERT’s online resources offered supplementary material and
reference content that supported the conceptual foundation of this
practical file.
4) Python Software Foundation. Python Official
Documentation. Available at: [Link]
Accessed September 2025.
The official Python documentation provided authoritative and detailed
explanations of Python libraries, functions, and best practices,
extensively used for resolving technical queries.
5) Pankaj Dwivedi, Classroom Lectures and Guidance Notes
on Python Programming. [CDA ACADEMY], 2025.
Mr. Pankaj Dwivedi Sir’s expert lectures, personalized guidance, and instructional
materials provided critical insights and practical knowledge essential for the
successful completion of this practical file.
These resources formed the foundation for the successful completion of
this Python programming practical file.

CONCLUSION
The successful completion of this Python programming
practical file represents a profound milestone in my
academic and technical odyssey, underscoring my
commitment to mastering the intricacies of programming.
This endeavor has significantly augmented my proficiency
in Python, deepening my command over its syntax,
logical constructs, and practical applications, while honing
my analytical and problem-solving acumen.
Engaging in the rigorous development of the programs
within this file has been an intellectually invigorating
journey, replete with challenges that have catalyzed my
growth as a programmer. The experience has fortified my
expertise in core programming paradigms, including
loops, functions, data structures, and robust error-
handling mechanisms, while illuminating the boundless
potential of Python in addressing real-world
computational challenges.
The exemplary mentorship of Mr. Pankaj Dwivedi Sir,
coupled with the authoritative resources provided by
Sumita Arora’s textbook, CBSE and NCERT guidelines, and
the official Python documentation, has been instrumental
in ensuring the precision, coherence, and excellence of
this work. These resources have collectively empowered
me to produce a practical file that adheres to the highest
academic standards set by the CBSE curriculum.
This practical file stands as a testament to my
unwavering dedication, intellectual rigor, and burgeoning
expertise in programming. It not only fulfills the academic
objectives but also lays a robust foundation for my future
pursuits in the dynamic and ever-evolving field of
computer science. I am confident that the skills and
insights gained through this project will propel me toward
greater achievements in technological innovation and
problem-solving.
Output of [Link]

(12)
Output of why [Link]

Output of online [Link]

Output of [Link]

(13)
Output of [Link]

(14)

You might also like