SlideShare a Scribd company logo
1 | P a g e
ACADEMIC YEAR: 2021-22
Name : Yugen Jarwal
Class : XII-G
Roll No. : 40
School : Kendriya Vidyalaya No.1 A.F.S Gurgaon
2 | P a g e
INDEX
S
No.
AIM Date Page
No
Sign
1 Write a python program to
search an element in a list
and display the frequency
of elements present in the
list by using a user defined
function. [List and search
element should be
entered by user]
12.6.21 6
2 Write a python program to
search an element in a list
and print the location by
using a user defined
function. [List and search
element should be
entered by user]
12.6.21 8
3 Write a python program to
pass a list to a function
and double the odd values
and half even values of a
list and display list
elements after changing.
12.6.21 10
3 | P a g e
4 Write a Python program
input n numbers in tuple
and pass it to function to
count how many even and
odd numbers are entered.
23.6.21 12
5 Write a Python program to
pass a string to a function
and count how many
vowels present in the
string.
23.6.21 14
6 Write a Python program
to generate random
numbers between 1 and 6
(simulates a dice) using a
user defined function
5.7.21 16
7 Write a menu driven
python program to
implement 10 python
mathematical functions.
5.7.21 18
8 Write a python program
to implement any 05
python string functions
5.7.21 23
9 Write a menu driven
program in python to
delete the name of a
student from the
dictionary and to search
29.7.21
25
4 | P a g e
phone no of a student by
student name.
10 Write a python program to
read and display file
content line by line with
each word separated by #.
29.7.21 28
11 Write a python program
Read a text file and display
the number of vowels,
consonants, uppercase,
lowercase characters in
the file.
15.8.21 30
12 Write a python program to
create a binary file with
name and roll number.
Search for a given roll
number and display name,
if not found display
appropriate message.
15.8.21 32
13 Write a python program
to create a CSV file by
entering user-id and
password, read and search
the password for given
user-id.
16.8.21 35
14 Write a menu driven
python program to create
25.8.21 37
5 | P a g e
a CSV file by entering
dept-id, name and city,
read and search the record
for given dept-id.
15 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.
25.8.21 39
16 Write a Menu driven
program in python to
count spaces, digits, words
and lines from text file
TOY.txt
27.8.21 41
17 Write a python program to
remove all the lines that
contain the character ‘a’ in
a file and write it to
another file.
27.8.21 44
18 Write a Python program to
function with key and
value, and update value at
that key in the dictionary
entered by the user.
27.8.21 46
6 | P a g e
Practical – 1
Aim : Write a python program to search an element in a
list and displaythe frequency of elements present in
the list by using a user defined function. [List and
search element should be entered by user]
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
7 | P a g e
Output:
8 | P a g e
Practical – 2
Aim : Write a pythonprogram to search an element in a list
and print the locationby using a user defined
function. [List and search element should be entered
by user]
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
9 | P a g e
Output:
10 | P a g e
Practical – 3
Aim : Write a python program to pass a list to a function
and double the odd values and half even values of a
list and display list elements after changing.
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
11 | P a g e
Output:
12 | P a g e
Practical – 4
Aim : Write a Python program input n numbersin tupleand
pass it to function to count how many even and odd
numbers are entered.
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
13 | P a g e
Output:
14 | P a g e
Practical – 5
Aim : Write a Python program to pass a string to a function
and count how many vowels present in the string.
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
15 | P a g e
Output:
16 | P a g e
Practical – 6
Aim : Write a Pythonprogram togenerate randomnumbers
between 1 and 6 (simulates a dice) using a user
defined function
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
17 | P a g e
Output:
18 | P a g e
Practical – 7
Aim : Write a menu driven python program to implement
10 pythonmathematical functions.
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
P.T.O
19 | P a g e
20 | P a g e
21 | P a g e
22 | P a g e
Output:
23 | P a g e
Practical – 8
Aim : Write a python program to implement any 05
python string functions
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
24 | P a g e
Output:
25 | P a g e
Practical – 9
Aim : Write a menu driven program in python to delete
the name of a student from the dictionaryand to
search phone no of a student by student name.
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
P.T.O
26 | P a g e
27 | P a g e
Output 1 :
Output 2:
28 | P a g e
Practical – 10
Aim : Write a python program to read and displayfile
content line by line with each word separated by #.
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
29 | P a g e
Text File :
Output :
30 | P a g e
Practical – 11
Aim : Write a python program Read a text file and display
the number of vowels, consonants, uppercase,
lowercase characters in the file.
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
31 | P a g e
Text File :
Output :
32 | P a g e
Practical – 12
Aim : Write a python program to create a binary file with
name and roll number. Search for a given roll
number and displayname, if not found display
appropriatemessage.
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
P.T.O
33 | P a g e
34 | P a g e
Output:
35 | P a g e
Practical – 13
Aim : 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 : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
36 | P a g e
CSV file created :
Output :
37 | P a g e
Practical – 14
Aim : 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 : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
38 | P a g e
CSV file created :
Output:
39 | P a g e
Practical – 15
Aim : Write a python program to create a dictionarywith
roll number, name and marks. Accept 5 records
from the user and write them into a binary file.
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
40 | P a g e
Output:
Binary File Created :
41 | P a g e
Practical – 16
Aim : Write a Menu driven program in pythonto count
spaces, digits, words and lines from text file TOY.txt
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
42 | P a g e
43 | P a g e
Output:
44 | P a g e
Practical – 17
Aim : Write a python program to remove all the lines that
containthe character ‘a’ in a file and write it to
another file.
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
45 | P a g e
Output:
46 | P a g e
Practical – 18
Aim : Write a Python program to function with key and
value, and update value at that key in the
dictionaryentered by the user.
Software Used : Pycharm (Python 3.9 64-bit)
Hardware Used: Keyboard, Monitor, Mouse, Hard disc,
RAM
Code :
47 | P a g e
Output:

More Related Content

What's hot

BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Python
vikram mahendra
 
Chemistry project for Class 12
Chemistry project for Class 12Chemistry project for Class 12
Chemistry project for Class 12
Shahban Ali
 
English project
English projectEnglish project
English project
jasvin2
 
Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12
Self-employed
 
Computer Project for class 12 CBSE on school management
Computer Project for class 12 CBSE on school managementComputer Project for class 12 CBSE on school management
Computer Project for class 12 CBSE on school management
RemaDeosiSundi
 
cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project
NIKHIL DWIVEDI
 
identification of cations and anions present in toothpaste
identification of cations and anions present in toothpasteidentification of cations and anions present in toothpaste
identification of cations and anions present in toothpaste
M Sai Sankharan
 
Project front page, index, certificate, and acknowledgement
Project front page, index, certificate, and acknowledgementProject front page, index, certificate, and acknowledgement
Project front page, index, certificate, and acknowledgement
Anupam Narang
 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12
OmRanjan2
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
KushShah65
 
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
Arjun Kumar Sah
 
Hindi project FILE CBSE class 12
Hindi project FILE CBSE class 12Hindi project FILE CBSE class 12
Hindi project FILE CBSE class 12
pareshajaypatil
 
cbse class 12th, chemistry investigatory project
cbse class 12th, chemistry investigatory projectcbse class 12th, chemistry investigatory project
cbse class 12th, chemistry investigatory project
NIKHIL DWIVEDI
 
Physics Investigatory Project - Class 12 - Tangent Galvanometer
Physics Investigatory Project - Class 12 - Tangent GalvanometerPhysics Investigatory Project - Class 12 - Tangent Galvanometer
Physics Investigatory Project - Class 12 - Tangent Galvanometer
Dhananjay Dhiman
 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
AbhishekKumarMorla
 
Study Of oxalte ion in guava fruit at different stages of ripening
Study Of oxalte ion in guava fruit at different stages of ripeningStudy Of oxalte ion in guava fruit at different stages of ripening
Study Of oxalte ion in guava fruit at different stages of ripening
Prince Warade
 
KV Banswara Chemistry investigatory project
KV Banswara Chemistry investigatory projectKV Banswara Chemistry investigatory project
KV Banswara Chemistry investigatory project
Khushal Mehta
 
1668526681006_indigo project file eng class 12.pptx
1668526681006_indigo project file eng class 12.pptx1668526681006_indigo project file eng class 12.pptx
1668526681006_indigo project file eng class 12.pptx
Khyati961280
 
Chemistry Practical Record Full CBSE Class 12
Chemistry Practical Record Full CBSE Class 12 Chemistry Practical Record Full CBSE Class 12
Chemistry Practical Record Full CBSE Class 12
Muhammad Jassim
 
English Project work.pdf
English Project work.pdfEnglish Project work.pdf
English Project work.pdf
AakashKushwaha26
 

What's hot (20)

BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Python
 
Chemistry project for Class 12
Chemistry project for Class 12Chemistry project for Class 12
Chemistry project for Class 12
 
English project
English projectEnglish project
English project
 
Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12
 
Computer Project for class 12 CBSE on school management
Computer Project for class 12 CBSE on school managementComputer Project for class 12 CBSE on school management
Computer Project for class 12 CBSE on school management
 
cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project
 
identification of cations and anions present in toothpaste
identification of cations and anions present in toothpasteidentification of cations and anions present in toothpaste
identification of cations and anions present in toothpaste
 
Project front page, index, certificate, and acknowledgement
Project front page, index, certificate, and acknowledgementProject front page, index, certificate, and acknowledgement
Project front page, index, certificate, and acknowledgement
 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
 
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
To Study the earth's magnetic field using a tangent galvanometer Tangent galv...
 
Hindi project FILE CBSE class 12
Hindi project FILE CBSE class 12Hindi project FILE CBSE class 12
Hindi project FILE CBSE class 12
 
cbse class 12th, chemistry investigatory project
cbse class 12th, chemistry investigatory projectcbse class 12th, chemistry investigatory project
cbse class 12th, chemistry investigatory project
 
Physics Investigatory Project - Class 12 - Tangent Galvanometer
Physics Investigatory Project - Class 12 - Tangent GalvanometerPhysics Investigatory Project - Class 12 - Tangent Galvanometer
Physics Investigatory Project - Class 12 - Tangent Galvanometer
 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
 
Study Of oxalte ion in guava fruit at different stages of ripening
Study Of oxalte ion in guava fruit at different stages of ripeningStudy Of oxalte ion in guava fruit at different stages of ripening
Study Of oxalte ion in guava fruit at different stages of ripening
 
KV Banswara Chemistry investigatory project
KV Banswara Chemistry investigatory projectKV Banswara Chemistry investigatory project
KV Banswara Chemistry investigatory project
 
1668526681006_indigo project file eng class 12.pptx
1668526681006_indigo project file eng class 12.pptx1668526681006_indigo project file eng class 12.pptx
1668526681006_indigo project file eng class 12.pptx
 
Chemistry Practical Record Full CBSE Class 12
Chemistry Practical Record Full CBSE Class 12 Chemistry Practical Record Full CBSE Class 12
Chemistry Practical Record Full CBSE Class 12
 
English Project work.pdf
English Project work.pdfEnglish Project work.pdf
English Project work.pdf
 

Similar to Computer Science Practical File class XII

UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
Nandakumar P
 
devyani.pptx
devyani.pptxdevyani.pptx
devyani.pptx
KASHISHUKEY
 
Pyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdfPyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdf
Mattupallipardhu
 
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdfpython-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
KosmikTech1
 
Introduction to python3.pdf
Introduction to python3.pdfIntroduction to python3.pdf
Introduction to python3.pdf
Mohammed Aman Nawaz
 
Introduction to Python.pdf
Introduction to Python.pdfIntroduction to Python.pdf
Introduction to Python.pdf
Rahul Mogal
 
python presentation
python presentationpython presentation
python presentation
VaibhavMawal
 
Python Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computerPython Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computer
sharanyarashmir5
 
Python Programming.pptx
Python Programming.pptxPython Programming.pptx
Python Programming.pptx
DineshThakur911173
 
Python (3).pdf
Python (3).pdfPython (3).pdf
Python (3).pdf
samiwaris2
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
jody zoll
 
Char word counter in Python with simple gui - PROJECT
Char word counter in Python with simple gui - PROJECTChar word counter in Python with simple gui - PROJECT
Char word counter in Python with simple gui - PROJECT
MahmutKAMALAK
 
Enjoy Type Hints and its benefits
Enjoy Type Hints and its benefitsEnjoy Type Hints and its benefits
Enjoy Type Hints and its benefits
masahitojp
 
Python4.pptx
Python4.pptxPython4.pptx
Python4.pptx
ssuser92720a
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
noahjamessss
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
cskvsmi44
 
C program compiler presentation
C program compiler presentationC program compiler presentation
C program compiler presentation
Rigvendra Kumar Vardhan
 
Cis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and strings
CIS321
 
QR Code Generator.pdf
QR Code Generator.pdfQR Code Generator.pdf
QR Code Generator.pdf
SudhanshiBakre1
 
Mastering the Interview: 50 Common Interview Questions Demystified
Mastering the Interview: 50 Common Interview Questions DemystifiedMastering the Interview: 50 Common Interview Questions Demystified
Mastering the Interview: 50 Common Interview Questions Demystified
MalcolmDupri
 

Similar to Computer Science Practical File class XII (20)

UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
 
devyani.pptx
devyani.pptxdevyani.pptx
devyani.pptx
 
Pyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdfPyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdf
 
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdfpython-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
 
Introduction to python3.pdf
Introduction to python3.pdfIntroduction to python3.pdf
Introduction to python3.pdf
 
Introduction to Python.pdf
Introduction to Python.pdfIntroduction to Python.pdf
Introduction to Python.pdf
 
python presentation
python presentationpython presentation
python presentation
 
Python Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computerPython Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computer
 
Python Programming.pptx
Python Programming.pptxPython Programming.pptx
Python Programming.pptx
 
Python (3).pdf
Python (3).pdfPython (3).pdf
Python (3).pdf
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
 
Char word counter in Python with simple gui - PROJECT
Char word counter in Python with simple gui - PROJECTChar word counter in Python with simple gui - PROJECT
Char word counter in Python with simple gui - PROJECT
 
Enjoy Type Hints and its benefits
Enjoy Type Hints and its benefitsEnjoy Type Hints and its benefits
Enjoy Type Hints and its benefits
 
Python4.pptx
Python4.pptxPython4.pptx
Python4.pptx
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
 
C program compiler presentation
C program compiler presentationC program compiler presentation
C program compiler presentation
 
Cis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and strings
 
QR Code Generator.pdf
QR Code Generator.pdfQR Code Generator.pdf
QR Code Generator.pdf
 
Mastering the Interview: 50 Common Interview Questions Demystified
Mastering the Interview: 50 Common Interview Questions DemystifiedMastering the Interview: 50 Common Interview Questions Demystified
Mastering the Interview: 50 Common Interview Questions Demystified
 

Recently uploaded

Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 

Recently uploaded (20)

Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 

Computer Science Practical File class XII

  • 1. 1 | P a g e ACADEMIC YEAR: 2021-22 Name : Yugen Jarwal Class : XII-G Roll No. : 40 School : Kendriya Vidyalaya No.1 A.F.S Gurgaon
  • 2. 2 | P a g e INDEX S No. AIM Date Page No Sign 1 Write a python program to search an element in a list and display the frequency of elements present in the list by using a user defined function. [List and search element should be entered by user] 12.6.21 6 2 Write a python program to search an element in a list and print the location by using a user defined function. [List and search element should be entered by user] 12.6.21 8 3 Write a python program to pass a list to a function and double the odd values and half even values of a list and display list elements after changing. 12.6.21 10
  • 3. 3 | P a g e 4 Write a Python program input n numbers in tuple and pass it to function to count how many even and odd numbers are entered. 23.6.21 12 5 Write a Python program to pass a string to a function and count how many vowels present in the string. 23.6.21 14 6 Write a Python program to generate random numbers between 1 and 6 (simulates a dice) using a user defined function 5.7.21 16 7 Write a menu driven python program to implement 10 python mathematical functions. 5.7.21 18 8 Write a python program to implement any 05 python string functions 5.7.21 23 9 Write a menu driven program in python to delete the name of a student from the dictionary and to search 29.7.21 25
  • 4. 4 | P a g e phone no of a student by student name. 10 Write a python program to read and display file content line by line with each word separated by #. 29.7.21 28 11 Write a python program Read a text file and display the number of vowels, consonants, uppercase, lowercase characters in the file. 15.8.21 30 12 Write a python program to create a binary file with name and roll number. Search for a given roll number and display name, if not found display appropriate message. 15.8.21 32 13 Write a python program to create a CSV file by entering user-id and password, read and search the password for given user-id. 16.8.21 35 14 Write a menu driven python program to create 25.8.21 37
  • 5. 5 | P a g e a CSV file by entering dept-id, name and city, read and search the record for given dept-id. 15 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. 25.8.21 39 16 Write a Menu driven program in python to count spaces, digits, words and lines from text file TOY.txt 27.8.21 41 17 Write a python program to remove all the lines that contain the character ‘a’ in a file and write it to another file. 27.8.21 44 18 Write a Python program to function with key and value, and update value at that key in the dictionary entered by the user. 27.8.21 46
  • 6. 6 | P a g e Practical – 1 Aim : Write a python program to search an element in a list and displaythe frequency of elements present in the list by using a user defined function. [List and search element should be entered by user] Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 7. 7 | P a g e Output:
  • 8. 8 | P a g e Practical – 2 Aim : Write a pythonprogram to search an element in a list and print the locationby using a user defined function. [List and search element should be entered by user] Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 9. 9 | P a g e Output:
  • 10. 10 | P a g e Practical – 3 Aim : Write a python program to pass a list to a function and double the odd values and half even values of a list and display list elements after changing. Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 11. 11 | P a g e Output:
  • 12. 12 | P a g e Practical – 4 Aim : Write a Python program input n numbersin tupleand pass it to function to count how many even and odd numbers are entered. Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 13. 13 | P a g e Output:
  • 14. 14 | P a g e Practical – 5 Aim : Write a Python program to pass a string to a function and count how many vowels present in the string. Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 15. 15 | P a g e Output:
  • 16. 16 | P a g e Practical – 6 Aim : Write a Pythonprogram togenerate randomnumbers between 1 and 6 (simulates a dice) using a user defined function Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 17. 17 | P a g e Output:
  • 18. 18 | P a g e Practical – 7 Aim : Write a menu driven python program to implement 10 pythonmathematical functions. Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code : P.T.O
  • 19. 19 | P a g e
  • 20. 20 | P a g e
  • 21. 21 | P a g e
  • 22. 22 | P a g e Output:
  • 23. 23 | P a g e Practical – 8 Aim : Write a python program to implement any 05 python string functions Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 24. 24 | P a g e Output:
  • 25. 25 | P a g e Practical – 9 Aim : Write a menu driven program in python to delete the name of a student from the dictionaryand to search phone no of a student by student name. Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code : P.T.O
  • 26. 26 | P a g e
  • 27. 27 | P a g e Output 1 : Output 2:
  • 28. 28 | P a g e Practical – 10 Aim : Write a python program to read and displayfile content line by line with each word separated by #. Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 29. 29 | P a g e Text File : Output :
  • 30. 30 | P a g e Practical – 11 Aim : Write a python program Read a text file and display the number of vowels, consonants, uppercase, lowercase characters in the file. Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 31. 31 | P a g e Text File : Output :
  • 32. 32 | P a g e Practical – 12 Aim : Write a python program to create a binary file with name and roll number. Search for a given roll number and displayname, if not found display appropriatemessage. Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code : P.T.O
  • 33. 33 | P a g e
  • 34. 34 | P a g e Output:
  • 35. 35 | P a g e Practical – 13 Aim : 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 : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 36. 36 | P a g e CSV file created : Output :
  • 37. 37 | P a g e Practical – 14 Aim : 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 : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 38. 38 | P a g e CSV file created : Output:
  • 39. 39 | P a g e Practical – 15 Aim : Write a python program to create a dictionarywith roll number, name and marks. Accept 5 records from the user and write them into a binary file. Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 40. 40 | P a g e Output: Binary File Created :
  • 41. 41 | P a g e Practical – 16 Aim : Write a Menu driven program in pythonto count spaces, digits, words and lines from text file TOY.txt Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 42. 42 | P a g e
  • 43. 43 | P a g e Output:
  • 44. 44 | P a g e Practical – 17 Aim : Write a python program to remove all the lines that containthe character ‘a’ in a file and write it to another file. Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 45. 45 | P a g e Output:
  • 46. 46 | P a g e Practical – 18 Aim : Write a Python program to function with key and value, and update value at that key in the dictionaryentered by the user. Software Used : Pycharm (Python 3.9 64-bit) Hardware Used: Keyboard, Monitor, Mouse, Hard disc, RAM Code :
  • 47. 47 | P a g e Output: