0% found this document useful (0 votes)
2 views4 pages

CBSE Class12 Python Colorful Cover File

This document is a practical file for CBSE Class 12 Computer Science, focusing on Python programming and SQL. It includes a certificate of completion and an index of various programming tasks such as calculating the sum of a list, factorial, prime checking, and SQL queries for database management. The file serves as a guide for students to complete their practical assignments under teacher supervision.

Uploaded by

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

CBSE Class12 Python Colorful Cover File

This document is a practical file for CBSE Class 12 Computer Science, focusing on Python programming and SQL. It includes a certificate of completion and an index of various programming tasks such as calculating the sum of a list, factorial, prime checking, and SQL queries for database management. The file serves as a guide for students to complete their practical assignments under teacher supervision.

Uploaded by

arjun singh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

CBSE CLASS 12

COMPUTER SCIENCE PRACTICAL FILE (PYTHON - 083)

★ SCHOOL NAME ★

Session: 2025-26

🔰 SCHOOL LOGO PLACEHOLDER 🔰


Certificate
This is to certify that __________________ has successfully completed the Computer Science
Practical File based on Python Programming and SQL as per CBSE Class 12 syllabus under
the guidance of the Computer Science teacher.
Index
1. Sum of List

2. Factorial

3. Prime Check

4. Fibonacci Series

5. Reverse String

6. Palindrome

7. File Handling

8. Vowel Count

9. Dictionary Ops

10. Stack

11. Bubble Sort

12. Binary Search

13. CSV Handling

14. Exception Handling

15. MySQL Connection

SQL Queries
1. Sum of List
lst=[10,20,30]
print(sum(lst))

2. Factorial
n=int(input())
f=1
for i in range(1,n+1):
f*=i
print(f)

3. Prime Check
n=int(input())
for i in range(2,n):
if n%i==0:
print('Not Prime')
break
else:
print('Prime')

4. Fibonacci
a,b=0,1
n=int(input())
for i in range(n):
print(a,end=' ')
a,b=b,a+b

5. Reverse String
s=input()
print(s[::-1])

SQL Queries

CREATE TABLE student(id INT, name VARCHAR(20), marks INT);


INSERT INTO student VALUES(1,'Amit',90);
SELECT * FROM student;
UPDATE student SET marks=95 WHERE id=1;
DELETE FROM student WHERE id=1;

You might also like