Cs Class 12 Term 1 Project
Cs Class 12 Term 1 Project
2022
COMPUTER SCIENCE
PRACTICAL FILE
NAME:DISHANTH .R
CLASS: XII ‘A’
SCHOOL: KENDRIYA VIDYALAYA
OCF
2
Date
Aim
1. To write a python program to pass a 12.6.21
list to a function and double the odd
values and half
Even values of a list and display list
elements after changing.
Practical 1
Aim:To write a python program to pass list to a function and
double the odd values and half even values of a list and display list
element after changing.
Output :
Practical 2
6
Output :
Practical 3
Aim:To write a Python program to function with key and value, and update
value at that key in dictionary entered by user.
Code:
Output :
Practical 4
Aim:To write a Python program to pass a string to a
function and count how many vowels present in the string.
Code:
Output :
Practical 5
Aim:To write a Python program to generator (Random Number)
that generates random numbers between 1 and 6 (simulates a dice)
using user defined function.
Code:
9
Output :
Practical 6
Aim:To write a menu driven python program to implement
10 python mathematical functions.
Software Used:IDLE(Python 3.8 32-bit)
Code:
10
Output :
11
Practical 7
12
Code:
Output:
13
Practical 8
14
Output :
15
Practical 9
16
Code:
Output:
17
Practical 10
18
Code:
19
Output:
20
Practical 11
Aim:To write a Menu driven program in python to count
spaces, digits, words and lines from text file TOY.txt
Code:
21
Output:
22
Practical 12
Aim:To write a python program to remove all the lines
that contain the character „a‟ in a file and write it to another
file.
Code:
Output:
Practical 13
24
Output :
25
Practical 14
Aim: To write a python program to create a dictionary with roll number, name
and marks. Accept 5 records from the user and write them into a binary file.
26
Code:
Output:
27
Practical 15
Aim:To write a python program to create a CSV file by
entering user-id and password, read and search the password
for given user-id.
Software Used:IDLE(Python 3.8 32-bit)
Code:
28
Output :
29
#########THANK
YOU###########