You are on page 1of 26

Department Of Computer Science

Session: 2021-2022

Title:
“PYTHON PROJECT FILE”

SUBMITTED BY: SUBMITTED TO:


HERA SINGH MR.VISHALKHATRI

ROLL NO. :

Page 1 of 26
ACKNOWLEDGEMENT

I would like to express my special thanks of gratitude to my Teacher


Mr. Vishal Khatri, PGT COMPUTER SCIENCE, as well as our Principal Ms.
Vandana Sharma who gave me the golden opportunity to do this
wonderful project on the topic Python Report File which also helped
me in doing a lot of Research and I came to know about so many new
things

I am really thankful to them.

Secondly I would also like to thank my parents and friends who helped
me a lot in finishing this project within the limited time.

I am making this project not only for marks but to also increase my
knowledge.

Page 2 of 26
Certificate
This is to certify thatthe content of this project entitled, “ Python Report
File” by “ Heera Singh” ,is the bona fide work of him submitted to
The Vivekanand School, Narela for consideration in partial fulfilment of

Certificate in computer science. Under the guidance of “Mr. Vishal


Khatri”

The original research work was carried out by him under my supervision
in the academic year 2021-2022. On the basis of the declaration made
by him. I recommend this project report for evaluation.
the requirement of CBSE, Delhi for the award of Senior School

External Examiner’s Internals’


Signature Signature

Head of the Department Principal’s Signature


Seal and Signature

Page 3 of 26
Declaration
I hereby declare that the project work entitled “Python Report File”
submitted to the “The Vivekanand School” for the subject of “Computer
Science”, under the guidance of “Mr. Rajiv”, is a record of original work
done by me. I further declare that this project record or any part of this
has not been submitted elsewhere for any other class.

Signature

Page 4 of 26
Content
SERIES NO. TITLE PAGE NO.
1. Decimal to Binary conversion using recursive 6
function
2. Checking if number is prime or not 7
3. Program to enter two numbers and print the 8
arithmetic operations like +,-,*, /, // and %
4. Write a program to find whether an inputted 9
number is perfect or not.
5. Write a Program to check if the entered number is 10
Armstrong or not
6. Write a Program to find factorial of the entered 11
number
7. Write a Program to enter the number of terms and 12
to print the Fibonacci Series
8. Write a Program to enter the string and to check if 13
it’s palindrome or not using loop
9. Recursively find the factorial of a natural number. 14
10. Read a file line by line and print it 15
11. Write a random number generator that generates 16
random numbers between 1 and 6(simulates a
dice)
12. Remove all the lines that contain the character “a” 17
in a file and write it into another file
13. Read a text file and display the number of 18
vowels/consonants/uppercase/lowercase
characters in the file
14. Read a text file line by line and display each word 19
separated by a #.
15. Create a binary file with name and roll no. Search 20
for a given roll number and display the name, if not
found display appropriate message.
16. Create a binary file with roll no., names and marks. 23
Input a roll no. and update the marks.
17. Create a CSV file by entering user-id and password, 25
read and search the password for given user-Id.

Page 5 of 26
Program 1:
Decimal to Binary conversion using recursive function.

Input:

Output:

Page 6 of 26
Program 2:
Checking if number is prime or not.

Input:

Output:

Page 7 of 26
Program 3:
Program to enter two numbers and print the arithmetic operations like
+,-,*, /, // and %.

Input:

Output:

Page 8 of 26
Program 4:
Write a program to find whether an inputted number is perfect or not.

Input:

Output:

Page 9 of 26
Program 5:
Write a Program to check if the entered number is Armstrong or not.

Input:

Output:

Page 10 of 26
Program 6:
Write a Program to find factorial of the entered number.

Input:

Output:

Page 11 of 26
Program 7:
Write a Program to enter the number of terms and to print the
Fibonacci Series.

Input:

Output:

Page 12 of 26
Program 8:
Write a Program to enter the string and to check if it’s palindrome or
not using loop.

Input:

Output:

Page 13 of 26
Program 9:
Recursively find the factorial of a natural number.

Input:

Output:

Page 14 of 26
Program 10:
Read a file line by line and print it.

Actual text file:

Input:

Output:

Page 15 of 26
Program 11:
Write a random number generator that generates random numbers
between 1 and 6(simulates a dice).

Input:

Output:

Page 16 of 26
Program 12:
Remove all the lines that contain the character “a” in a file and write it
into another file.

Actual text file:

Input:

Output:

Page 17 of 26
Program 13:
Read a text file and display the number of
vowels/consonants/uppercase/lowercase characters in the file.

Actual text file:

Input:

Output:

Page 18 of 26
Program 14:
Read a text file line by line and display each word separated by a #.

Actual text file:

Input:

Output:

Page 19 of 26
Program 15:
Create a binary file with name and roll no. Search for a given roll
number and display the name, if not found display appropriate
message.
Input:
1.

2.

3.

Page 20 of 26
4.

Output:

Page 21 of 26
Page 22 of 26
Program 16:
Create a binary file with roll no., names and marks. Input a roll no. and
update the marks.

Input:

1.

2.

3.

Page 23 of 26
Output:

1.

2.

3.

Page 24 of 26
Program 17:
Create a CSV file by entering user-id and password, read and search the
password for given user-ID.

Input:

Page 25 of 26
Output:

Page 26 of 26

You might also like