0% found this document useful (0 votes)
26 views42 pages

Bhavishya Kataria 12th A Practical File On Python NUCSSS

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views42 pages

Bhavishya Kataria 12th A Practical File On Python NUCSSS

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 42

1

COMPUTER SCIENCE.

NAME – Bhavishya Kataria


CLASS – XII A
ROLL No. –
SUBMITTED TO – Mrs. Rani Saloni
2

This is to cer fy that BHAVISHYA


KATARIA of class: XII A of NAV UDAY
CONVENT SR. SEC. PUBLIC SCHOOL
Has done his “Prac cal File” under my
supervision. He has taken interest and
has shown at most sincerity in
comple on of this project.
I cer fy this prac cal up to my
expecta on & asper guidelines issued
by CBSE, NEW DELHI.

INTERNAL EXAMINER EXTERNAL EXAMINER

PRINCIPAL
3

ACKNOWLEDGEMENT
It is with pleasure that I acknowledge my
sincere gra tude to our teacher, MRS. RANI
SALONI who taught and undertook the
responsibility of teaching the subject
computer science. I have been greatly
benefitedfrom his classes.
I am especially indebted to our Honourable
Principal MRS. NIMMI who has always been
a source of encouragement and support and
without whose inspira on thisproject would
not have been a successful I would like to
place on record hear elt thanks to him.
I also acknowledge with a deep sense of
reverence, my gra tude towards my parents,
other faculty members of the school and friends
for their valuable sugges ons given to me in
comple ng the project

SIGNATURE
4

INDEX

SNO. NAME OF PRACTICAL PAGE SIGN OF


NO. TEACHER
1. 1

2. 2

3. 3

4. 4

5. 5

6. 6

7. 7

8. 8

9. 9

10. 10-11

11. 12-13
5

12. 14-15

13. 16-17

14. 18

15. 19-28

16. 30-34
6

Program1:

*INPUT

*OUTPUT
7

Program2:

*INPUT

*OUTPUT
8

Program3:
Write a random number generator that
generates random numbers between 1 and
6(s mulates a dice).

*INPUT

*OUTPUT
9

Program4:

*INPUT
10

*OUTPUT
11

Program5:

*INPUT

*OUTPUT
12

Program6:

*INPUT

*OUTPUT
#Original file

#New file#####

#New file
13

Program7:

*INPUT

*OUTPUT
14

Program8:

*INPUT

*OUTPUT
15

Program9:

*INPUT
16

*OUTPUT
17

Program10:

*INPUT
18

*OUTPUT
T
19

Program11:
Write a program to create a file CAMERA.csv
having fields Model No, Mega Pixel, Zoom and
Price using comma as a delimiter and display its
content

*INPUT
20

*OUTPUT

#CSV file in Microso Excel


21

Program12:
Write a program to read VOTERS.csv file containing
Voter Id, Voter Name, Voter Age and Status having
comma as a delimiter. Also read and display the
contents of the file
*INPUT
22

*OUTPUT

#CSV file in Microso Excel


23

Program13:
Write a Python program to implement a stack using a list data-
structure
*INPUT
24
25

#Output
26
27

Program14:
Take a sample of ten phishing e-mails (or any text
file) and find most commonly occurring words.

*INPUT

*OUTPUT
28

SQL Queries
Program15:
Create a database “My_Database” and create
tables – “Student_List” and “Records” in it.
Implement the following SQL commands on
the table: -
a. Insert data
b. Alter table (add new a ribute/modify data
type/ drop a ribute)
c. Update data
d. Delete record
e. Aggregate Func ons
f. Order by Clause
g. Fetch data
h. Group By data
I. Join tables
29

*Create Database:

*Create Tables:

*Describe Table:
30

*Insert values in Table:

*Fetch Data:

*After Clause:

→Drop Attribute
31
32

→Add A ribute

→Modify A ribute

*Update Values:
33

*Delete Record:

*Aggregate Functions:
→MAX

→MIN
34

→SUM

→COUNT

→AVERAGE

*Order - By Clause:
35

* Group – By Clause:
36

* joining tables:
37

Connectivityof
SQLWithPython
38

Program16:
Integrate SQL with Python by impor ng the MySQL module to
implement:
a. Create a table
b. Insert data
c. Fetch data
d. Update data
e. Delete data
39
40
41
42

THANK
YOU
MADE BY ­ BHAVISHYA KATARIA

You might also like