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;