DAV PUBLIC SCHOOL
NOIDA SECTOR-56
COMPUTER
SCIENCE
WITH PYTHON
PRACTICAL FILE
SESSION [2 022-23]
Name-Rohan Mehra
Class-12-A
Roll No.
INDEX OF COMPUTER SCIENCE PRACTICAL FILE
CLASS-11(List,Tuples,Dictionary,Functions
Serial No. Programs
1. Program to perform even and odd number list from user list
2. Program to perform linear search on list
3. Program to perform shifting negative elemenstone sids
4. Program to perform user list of n numbers of items
5. Program to perform to input two tuples and swap their values
6. Program to perform largest and second largest no from list
7. Program to perform linear search on tuple
8. Program to input a tuple of integers and find the maximum
and minimum integers from the tuple
9. Program to count no. of occurrence of character in given string using
dictionary
10. Program to make a dictinary of stream s
Downloaded by Rohan Mehra (m.r
[email protected] om)
Functions
Serial No. Programs
1. To display Fibonacci series using Recursion
2. To find maximum of three numbers
3. To finding area of different shapes using functions
4. Finding factorial using function
Text Files
Serial No. Programs
1. Program to count no of vowels, consonants and digits in text files
2. Program to read and print the lines having length more than 50 in text file
3. Program to count no of words in text files
4. Find the total no of lines and total no of words in a text file
5. Program to count words starting with ‘P’ or ‘E’ in text file
6. Program to make a employee record in a text file using writeline ()
7. Program to read and print the words having length more than more than 7 from
text file
8. Program to append employees in the record and search these employee
having salary more than 15000
9. Program to make a copy file of only those lines starting with uppercase
letters
Binary Files
Serial No. Programs
1. Program for deleting a record in a binary file
2. Program to make a dictinary in binary file
3. Program for writing and reading students record in a binary
file
4. Program for writing and reading students record in a binary file
5. Program to make a look record in binary files
6. Program for appending record in a binary file
7. Program for updating a record in a binary file
8. Program to store Gmeet Info in binary files
CSV Files
Serial No. Programs
1. Program to reading a csv file
2. Program to store students data in csv file
3. Program to search a students’ record
4. Program to write in a csv file using writerow() function
Stack Implementation
Serial No. Programs
1. Program to showcase all functions of stacks
2. Program to display vowels present in the words entered by
user
3. Program to push, pop & display name and Id of the
book in stack of book
4. Program to push, pop & display name and marks of students in
stack of students
Databases
Serial No. Queries
1. Database containing LOANS table
2. Database containing PRODUCT table
3. Database containing MODEL table
4. Database containing STOCK table
5. Database containing CARDEN table
Interface Python SQL Connectivity
Serial No. Queries
1. Program for making SQL database via python
2. Entering data SQL SCHOOL database via python
3. Deleting data from SQL SCHOOL database via python
4. Program for updating data SQL SCHOOL database
via python
CLASS-11(List,Tuples,Dictionary,Functions)
Program to sort a list
Program Output
Program to shift negative elements on one side in list
Program Output
Program to add ‘n’ number of items in list
Program Output
Program to find largest and second largest no. from list
Program Output
Program to input two tuples and swap their values
Program Output
Program to perform linear search on tuple
Program Output
Program to input a tuple of integers & find the maximum &
minimum integer from the tuple.
Program Output
Program to count no. of occurrence of character in given
string using dictionary
Program Output
Program to make a dictionary of streams
Program Output
Program to store students’ record in the dictionary.
Program Output
Functions
Finding area of different shapes using functions
Program :
Output:
Finding factorial using functions
Program Output
Counting lowercase and uppercase characters using
functions
Program Output
Counting vowels in a string using functions
Program Output
Text
Program to read & print the lines having length more than 50 in
text file
Program Output
File:
Program to count no. of words in text files
Program Output
File
Program to count no. of vowels, consonants & digits in
text files
Program Output
Program to count words starting with ‘P’ or ‘E’ in text
files
File
Program Output
Find the total no. of lines & total no. of words in a text file
Output
Program
File:
Program to read & print the words having length more than 7from
text file
Output
Program
File:
Program to make a employee record in a text file using
writelines ()
Output
Program
File
Program to append employees in the record and search those employees having salary more
than 15000
File File
(before) (updated)
Program Output
Program to make a copy file of only those lines starting with uppercase letters
Program Source File
Output Required File
Program to find the no. of times a word appears in file
Output
Program
File
Binary
Program for writing & reading students’
record in a binary file.
Output
Program
Program for writing & reading students’ record
in a binary file.
Output
Program
Program to make a dictionary in binary files
Program Output
Program to make a book record in binary files
Program Output
Program for appending record in a binary file
Program Output
Program for deleting a record in a binary file
Output
Program
Program for updating a record in a binary file
Output
Program
Program to store Gmeet Info in binary files
Program
Output
CSV Files
Program to reading a csv file
Program Output
Program to store students data in csv file
Program Output
File :
Program to search a students’ record
Program Output
Program to write in a csv file using writerow() function.
Program Output
File :
Stacks
Program to showcase all functions of stacks
Program Output
Program to display vowels present in the words entered by
user
Program Output
Program to push, pop & display name and Id of the
book in stack of book
Program Output
Program to push, pop & display name and marks of students in
stack of students
Program Output
Databases
LOANS TABLE Write SQL commands for the following queries:
PRODUCTTABLE CLIENT TABLE
Write SQL commands for the following queries:
COM{ANY TABLE MODEL TABLE
Write SQL commands for the following queries:
STOCK TABLE DEALER TABLE
Write SQL commands for the following queries:
CARDENTABLE Write SQL commands for the following queries:
Interface Python
SQL Connectivity
Making SQL SCHOOL database via python
Entering data in SQL SCHOOL database via python
Deleting data from SQL SCHOOL database via python
Updating data to SQL SCHOOL database via python