Professional Documents
Culture Documents
CODE-
OUTPUT-
Program2. Program to read the content and display total number of
consonant, vowels, upper case and lower case characters.
CODE-
OUTPUT-
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Program3. Program to read the content line by line and write it to
another file except for the lines that contain the letter ‘a’ in it.
CODE-
OUTPUT-
CODE-
OUTPUT-
Program5. Program to create binary file to store rollno, name and marks
and update the marks for the rollno entered.
CODE-
OUTPUT-
Program6. Program to generate random number between 1 to 6,
simulating a dice
CODE-
OUTPUT-
Program7. Program to implement Stack in python using a List.
CODE-
OUTPUT-
Program 8. Create a CSV file by entering user id and password, read and
search the password for the given user id.
CODE-
OUTPUT-
Program 9. Create a database MySql using python program; perform all
the operation with reference to table ‘students’ through MySql and
Python connectivity.
CODE-
OUTPUT-
NOTE-
CODE-
OUTPUT: