尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
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

Computer science project.pdf
Computer science project.pdfComputer science project.pdf
Computer science project.pdf
HarshitSachdeva17
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science Project
Ashwin Francis
 
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
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market Billing
Harsh Kumar
 
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdfCOMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
AkshatTiwari530170
 
Physics Practical File - with Readings | Class 12 CBSE
Physics Practical File - with Readings | Class 12 CBSEPhysics Practical File - with Readings | Class 12 CBSE
Physics Practical File - with Readings | Class 12 CBSE
Saksham Mittal
 
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
 
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
Anushka Rai
 
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
 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12
Self-employed
 
Isc computer project final upload last
Isc computer project final upload lastIsc computer project final upload last
Isc computer project final upload last
Arunav Ray
 
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
 
Chemistry project for Class 12
Chemistry project for Class 12Chemistry project for Class 12
Chemistry project for Class 12
Shahban Ali
 
Computer science project work
Computer science project workComputer science project work
Computer science project work
rahulchamp2345
 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
Mitul Patel
 
Physics activity file class 12
Physics activity file class 12Physics activity file class 12
Physics activity file class 12
Titiksha Sharma
 
CLASS 12th PHYSICS PRACTICAL FILE
CLASS 12th PHYSICS PRACTICAL FILECLASS 12th PHYSICS PRACTICAL FILE
CLASS 12th PHYSICS PRACTICAL FILE
Anushka Rai
 
Maths practical file (class 12)
Maths practical file (class 12)Maths practical file (class 12)
Maths practical file (class 12)
Anushka Rai
 
Factors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell dependsFactors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell depends
Harsh Solanki
 
Chemistry Investigatory Project of class 12th CBSE
Chemistry Investigatory Project  of class 12th CBSEChemistry Investigatory Project  of class 12th CBSE
Chemistry Investigatory Project of class 12th CBSE
Nagesh Agrawal
 

What's hot (20)

Computer science project.pdf
Computer science project.pdfComputer science project.pdf
Computer science project.pdf
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science Project
 
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
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market Billing
 
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdfCOMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
 
Physics Practical File - with Readings | Class 12 CBSE
Physics Practical File - with Readings | Class 12 CBSEPhysics Practical File - with Readings | Class 12 CBSE
Physics Practical File - with Readings | Class 12 CBSE
 
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
 
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
 
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)
 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12
 
Isc computer project final upload last
Isc computer project final upload lastIsc computer project final upload last
Isc computer project final upload last
 
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
 
Chemistry project for Class 12
Chemistry project for Class 12Chemistry project for Class 12
Chemistry project for Class 12
 
Computer science project work
Computer science project workComputer science project work
Computer science project work
 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
 
Physics activity file class 12
Physics activity file class 12Physics activity file class 12
Physics activity file class 12
 
CLASS 12th PHYSICS PRACTICAL FILE
CLASS 12th PHYSICS PRACTICAL FILECLASS 12th PHYSICS PRACTICAL FILE
CLASS 12th PHYSICS PRACTICAL FILE
 
Maths practical file (class 12)
Maths practical file (class 12)Maths practical file (class 12)
Maths practical file (class 12)
 
Factors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell dependsFactors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell depends
 
Chemistry Investigatory Project of class 12th CBSE
Chemistry Investigatory Project  of class 12th CBSEChemistry Investigatory Project  of class 12th CBSE
Chemistry Investigatory Project of class 12th CBSE
 

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
 
Introduction to Python and Basic Syntax.pptx
Introduction to Python and Basic Syntax.pptxIntroduction to Python and Basic Syntax.pptx
Introduction to Python and Basic Syntax.pptx
GevitaChinnaiah
 
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
cskvsmi44
 
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
 
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
 

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
 
Introduction to Python and Basic Syntax.pptx
Introduction to Python and Basic Syntax.pptxIntroduction to Python and Basic Syntax.pptx
Introduction to Python and Basic Syntax.pptx
 
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
 

Recently uploaded

Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
biruktesfaye27
 
The Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptxThe Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptx
PriyaKumari928991
 
Talking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual AidsTalking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual Aids
MattVassar1
 
bryophytes.pptx bsc botany honours second semester
bryophytes.pptx bsc botany honours  second semesterbryophytes.pptx bsc botany honours  second semester
bryophytes.pptx bsc botany honours second semester
Sarojini38
 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
Kalna College
 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
Kalna College
 
nutrition in plants chapter 1 class 7...
nutrition in plants chapter 1 class 7...nutrition in plants chapter 1 class 7...
nutrition in plants chapter 1 class 7...
chaudharyreet2244
 
managing Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptxmanaging Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptx
nabaegha
 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Kalna College
 
8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity
RuchiRathor2
 
pol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdfpol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdf
BiplabHalder13
 
Decolonizing Universal Design for Learning
Decolonizing Universal Design for LearningDecolonizing Universal Design for Learning
Decolonizing Universal Design for Learning
Frederic Fovet
 
Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024
Friends of African Village Libraries
 
Creativity for Innovation and Speechmaking
Creativity for Innovation and SpeechmakingCreativity for Innovation and Speechmaking
Creativity for Innovation and Speechmaking
MattVassar1
 
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
yarusun
 
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
Nguyen Thanh Tu Collection
 
(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"
MJDuyan
 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
whatchangedhowreflec
 
Cross-Cultural Leadership and Communication
Cross-Cultural Leadership and CommunicationCross-Cultural Leadership and Communication
Cross-Cultural Leadership and Communication
MattVassar1
 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
Kalna College
 

Recently uploaded (20)

Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
 
The Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptxThe Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptx
 
Talking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual AidsTalking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual Aids
 
bryophytes.pptx bsc botany honours second semester
bryophytes.pptx bsc botany honours  second semesterbryophytes.pptx bsc botany honours  second semester
bryophytes.pptx bsc botany honours second semester
 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
 
nutrition in plants chapter 1 class 7...
nutrition in plants chapter 1 class 7...nutrition in plants chapter 1 class 7...
nutrition in plants chapter 1 class 7...
 
managing Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptxmanaging Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptx
 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
 
8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity
 
pol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdfpol sci Election and Representation Class 11 Notes.pdf
pol sci Election and Representation Class 11 Notes.pdf
 
Decolonizing Universal Design for Learning
Decolonizing Universal Design for LearningDecolonizing Universal Design for Learning
Decolonizing Universal Design for Learning
 
Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024
 
Creativity for Innovation and Speechmaking
Creativity for Innovation and SpeechmakingCreativity for Innovation and Speechmaking
Creativity for Innovation and Speechmaking
 
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
 
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
 
(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"(T.L.E.) Agriculture: "Ornamental Plants"
(T.L.E.) Agriculture: "Ornamental Plants"
 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
 
Cross-Cultural Leadership and Communication
Cross-Cultural Leadership and CommunicationCross-Cultural Leadership and Communication
Cross-Cultural Leadership and Communication
 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
 

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:
  翻译: