Suggested Practical List
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
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;
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).
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
- GROUP BY and find the min, max, sum, count, and average