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.