CHIRGAON (JHANSI)
Session- 2019-20
CLASS-12th
SUBJECT-COMPUTER SCIENCE
PROJECT FILE OF
PYTHON PROGRAMS
Submitted by: Submitted to:
Priyanshu Mr. Nishant Soni
ACKNOWLEDGEMENT
I hereby acknowledge to my deep sense of gratitude
and indebtedness to the following personalities
whose immense help , genius guidance,
encouragement, necessary suggestions, initiations,
enthusiasm and inspiration made this work a master
art and a joint enterprise……..
Principal sir……………………
Subject Teacher………………………………..
CERTIFICATE
This is to certify that I ………………………….. of class XII
has successfully completed this computer project on
“Python Programs” , prescribed by Mr. Nishant Soni,
during academic session 2019-2020 as per the
guideline issues by the C.B.S.E(Central Board of
Secondary Education).
Computer Teacher External
Examiner
CONTENT
Page no.
Program 1- Recursively find the factorial of a natural number .
Program 2- Read a file line by line and print it.
Program 3- Remove all the lines that contain the character ‘a’
in a file and write it to another file. Program-4. write a python
function sin(x,n) to calculate the value of sin(x) using its taylor
series expansion upto n terms .compare the values of sin(x) for
different values of n with the correct value.
Program 5-Write a random number generator that generates
random numbers between 1 and 6 (simulates a dice).
Program 6-Write a recursive code to find the sum of all
elements of a list .
Program 7-write a recursive code to compute the nth Fibonacci
number.
Program 8-write a python program to implement to a stack
and queue using a list data-structure .
Program-9. Write a recursive python program to test if a string
is a palindrome or not. Program
10-write a python program to plot the function y=x2 using the
pyplot or matplotlib libraries. Program 11-
create a graphical application that accepts user input ,perform
some operation on them ,and then write the output on the
screen .For example ,write a small calculator use the tkinter
library. Program 12-
open a webpage using the urllib libraries. Program 13-
Compute EMI for a loan using the numpy or scipy libraries.
Program -14-Take a sample of 10 phishing e-mails and find the
most common words