XII CS Pract Sample
XII CS Pract Sample
Practical 1
6
Code:
Output 1:
7
Output 2:
Practical 2
8
Output 1:
9
Output 2:
Practical 3
10
Code:
Output 1:
11
Output 2:
Output 3:
Practical 4
12
Code:
Output 1:
13
Output 2:
Output 3:
14
Practical 5
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 1:
15
Output 2:
Practical 6
16
Code:
Output 1:
17
Output 2:
Output 3:
Practical 7
18
Code:
Output 1:
19
Output 2:
Output 3:
Practical 8
20
Output 1:
21
Output 2:
Output 3:
22
Practical 9
23
Code:
24
Output:
Practical 10
25
Output 1:
26
Output 2:
Output 3:
Practical 11
27
Code:
Output:
Practical 12
29
Code:
30
Output:
Practical 13
31
Code:
Output:
Practical 14
33
Code:
Output:
Practical 15
35
Output 1:
36
Output 2:
Output 3:
37
Practical 16
38
Code:
Output 1:
39
Output 2:
40
Practical 17
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)
Hardware used: Keyboard, Monitor, Mouse, Hard
disc, RAM
Code:
41
Output 1:
Output 2:
42
Practical 18
Aim: To write a menu driven python program to create
a CSV file by entering dept-id, name and city, read and
search the record for given dept-id.
Software Used: IDLE(Python 3.8 32-bit)
Hardware used: Keyboard, Monitor, Mouse, Hard
disc, RAM
Code:
44
Output 1:
Output 2:
45
Output 3:
Output 4: