intro practical
intro practical
PRACTICAL FILE
STUDENT NAME: ANMOL SINGH
CLASS: XII ‘A’
SUBJECT: COMPUTER SCIENCE(083)
CBSE ROLL NO.:
Signature of Principal :
ACKNOWLEDGMENT
S.No. Topic
1 Python program 1-24
1 Read a text file line by line and display 2-2
each word separated by a #.
2 Read a text file and display the number of 3-4
vowels/consonants/uppercase/lowercase
characters in the file.
3 Remove all the lines that contain the 5-5
character 'a' in a file and write it to
another file.
4 Create a binary file with name and roll 6-7
number. Search for a given roll number
and display the name, if not found display
appropriate message.
5 Create a binary file with roll number, 8-10
name and marks. Input a roll number and
update the marks
6 Write a program which create random 11-11
number generator that generates random
numbers between 1 and 6 (simulates a
dice).
7 Write a Python program to implement a 12-13
stack using list.
8 Create a CSV file by entering user-id and 14-15
password, read and search the password
for given userid.
9 Write a function that receives two 16-16
number and generate a random number
from the range using this function the
main program should be able to print
three number randomly
10 Write a program that creates a tuple 17-17
storing first nine terms of Fibonacci series
11 Write a program that reads a date as an 18-18
integers in the format MMDDYYYY. The
program will call a function that prints
print out the date in the format <month
name > <day>,<year>.
12 Write a program that generates 4 terms of 19-19
an AP by providing initial and step values
to a function that returns first four terms
of the series.
13 Write a program that copies one file to 20-21
another. Have the program read the file
names from user.
14 Write function in python, 22-22
MakePush(Package) &MakePop(Package)
to add a new Package and delete a
Package from a List of Package
Description, considering them to act as
push and pop operations of the Stack data
structure.
15 Write a program to implement a stack for 23-24
these book details (book no.,book
name).That is now each item node of the
stack contains two type of information-a
book no. and its name.just implement
pusk and display operation