0% found this document useful (0 votes)
10 views2 pages

Suggested Practical List

Uploaded by

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

Suggested Practical List

Uploaded by

manishydv9845
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Suggested Practical List

Python Programming

1. Read a text file line by line and display each word separated by a #.

2. Read a text file and display the number of vowels, consonants, uppercase, and lowercase

characters in the file.

3. Remove all the lines that contain the character 'a' in a file and write it to another file.

4. Create a binary file with name and roll number. Search for a given roll number and display the

name;

if not found, display an appropriate message.

5. Create a binary file with roll number, name, and marks. Input a roll number and update the marks.

6. Write a random number generator that generates random numbers between 1 and 6 (simulates a

dice).

7. Write a Python program to implement a stack using a list.

8. Create a CSV file by entering user-id and password, read and search the password for the given

user-id.

Database Management
1. Create a student table and insert data. Implement the following SQL commands on the student

table:

- ALTER table to add new attributes / modify data type / drop attribute

- UPDATE table to modify data

- ORDER BY to display data in ascending / descending order

- DELETE to remove tuple(s)

- GROUP BY and find the min, max, sum, count, and average

2. Similar exercises may be framed for other cases.

3. Integrate SQL with Python by importing a suitable module.

You might also like