Document 1
Document 1
SCHOOL
SESSION 2024-2025
PRACTICAL FILE
COMPUTER SCIENCE (083)
CLASS XII
SUBMITTED BY
NAME: HANSIKA
CLASS: XII
SECTION: A
ROLL NO:
BOARD ROLL NO:
PROGRAM 01
Python program that accepts a number from the user
and displays its factorial
OUTPUT:
PROGRAM 02:
Python program to find GCD (Greatest common digit)
of two numbers
OUTPUT:
PROGRAM 03:
Python program to print all the prime numbers from 1
to 100
OUTPUT:
PROGRAM 04:
Python program to print binary number of an
equivalent decimal number
OUTPUT:
PROGRAM 05:
Python program to check whether a number is
palindrome or not
OUTPUT:
PROGRAM 06:
Python program to check whether a number is disarium
or not
OUTPUT:
PROGRAM 07:
Python program to count and display the total number
of uppercase letters, lowercase letters, digits, space and
special characters
OUTPUT:
PROGRAM 08:
Python program to check if a given string is pangram
string or not
OUTPUT:
PROGRAM 09:
Python program to accept 2 strings from a user and
check if they are anagram to each other or not
OUTPUT:
PROGRAM 10:
Python program to accept 10 numbers in a list and to
display the sum and average of all the buzz numbers
OUTPUT:
PROGRAM 11:
Python program to accept 10 numbers in a list and
replace every number with the sum of its digits
OUTPUT:
PROGRAM 12:
Python program to accept 10 strings in a list and display
the palindrome strings in it.
OUTPUT:
PROGRAM 13:
Python program to accept n strings in a list and replace
every string with twice its value if it contains only digits
otherwise replace the string with #
OUTPUT:
PROGRAM 14:
Python program to accept N numbers in a list and
reverse its elements by swapping first element with the
last, second with the 2nd last 3rd with the third last and
so on.
OUTPUT:
PROGRAM 15:
Python program to accept N numbers in a list and
display the sum of odd and even numbers separately
OUTPUT:
PROGRAM 16:
Menu driven Python program to perform insertion sort
and bubble sort on a list using user defined functions
OUTPUT:
PROGRAM 17:
Menu driven program to perform reading and writing
data and text file
OUTPUT:
PROGRAM 18:
Python program to count the total number of uppercase
letters, lowercase letters, digits, space, and other
characters in a text file
OUTPUT:
PROGRAM 19:
Menu driven program to perform read, write, search,
delete, modify operations on a binary file using list
object
PROGRAM 20:
Menu driven program to perform read, write, search,
delete, modify operations on a binary file using tuple
object
PROGRAM 21:
Menu driven program to perform read, write, search,
delete, modify operations on a binary file using
dictionary object
PROGRAM 22:
Menu driven program to perform read, write, search,
delete, modify operations on a CSV file.
PROGRAM 23:
Menu driven program to perform following operations
on stack using single values
1. Push
2.Pop
3.Display
OUTPUT:
PROGRAM 24:
Menu driven program to perform push, pop and display
operations on stack using multiple values
OUTPUT:
PROGRAM 25:
Menu driven program to perform Python interface
connectivity in my SQL to use following operations
1. Write new record
2. Search
3. Display
4. Delete
5. Modify
PROGRAM 26:
Python program to perform random function
OUTPUT:
PROGRAM 27:
SQL TABLES
• TABLE 1 (STUDENTS)
Creation of table
Using ‘like’