0% found this document useful (0 votes)
53 views

C.S Assignment File 2023-24 Python

This document provides an index of programming problems and exercises related to strings, lists, tuples, dictionaries, sorting, searching, files, and database connectivity in Python. The problems cover topics like checking palindromes, finding frequencies in lists, sorting lists, searching lists, analyzing text files, working with binary files, connecting to databases, and performing operations like insert, delete, display on tables. There are a total of 15 problems listed with a brief description and the corresponding page numbers where the full problems are provided.

Uploaded by

troublegaming852
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

C.S Assignment File 2023-24 Python

This document provides an index of programming problems and exercises related to strings, lists, tuples, dictionaries, sorting, searching, files, and database connectivity in Python. The problems cover topics like checking palindromes, finding frequencies in lists, sorting lists, searching lists, analyzing text files, working with binary files, connecting to databases, and performing operations like insert, delete, display on tables. There are a total of 15 problems listed with a brief description and the corresponding page numbers where the full problems are provided.

Uploaded by

troublegaming852
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

AN

PRATICAL FILE

XII - Section

Guided By: Submitted By:


INDEX

SR TITLE PAGE
NO . NO.

1. Write a Program to enter the string and to check if it’s 4


palindrome or not using loop.
Program to find frequencies of all elements of a list .
2. Also , print the list of unique elements in the list and 5
duplicate elements in the given list

3. Write a program to check if the elements in the first half 6


of a tuple are sorted in ascending order or not

4. Write a program to create a dictionary with the roll 7


number, name and marks of n students in a class and
display the names of students who have marks above
75

5. Program to sort a sequence using bubble sort. 8

6. Program to search an element in list using binary 9


search.

7. Read a text file and display the number of 10


vowels/consonants/uppercase/lowercase characters in
the file.
Write a program to show and count the number of
8. words in a text file ‘DATA.TXT’ which is starting/ended 11-12
with an word ‘he’, ‘she’.
Consider a binary file “Emp.dat” containing details
9. such as empno: ename:salary(separator‘:’).Write a 13
python function to display details of those employees
who are earning between 20000 and 40000.

10. Create a binary file with name and roll no. Search for a 14
given roll number and display the name, if not found
display appropriate message.
11. Write a program to create a CSV file to store student 15
data(Rollno. , Name , Marks). Obtain data from user and
write 5 records into the file.
Write a program to show push and pop operation using
12. stack. 16-17

13. Write a python program that displays a first three rows 18-22
fetched from student table of MySQL database “test”.

14. Write a python database connectivity script that 23


deletes records from category table of database items
that have name = ‘Stockable’
Write a program to show MySQL CONNECTIVITY for
15. inserting two tuples in table:"student" inside 24
database:"class12"

You might also like