0% found this document useful (0 votes)
14 views5 pages

Index

Uploaded by

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

Index

Uploaded by

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

INDEX

Sr. No Python Programs Page


No.
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 /upper case /
lower case character in the
file.

3 Remove all the lines that


contain the character ‘a’ in a
file and write it to another
file.
4 Write a menu driven
program to perform
arithmetic operation (+,-,*,/)
based on the user choice.
5 Create a binary file with roll
number, name and marks.
Input a roll number and
update the marks.
6 Create a CSV file by entering
user’s id and password, read
and search the password for
given user-id.
7 Write a random number
generator that generates
random number between 1
and 6 (stimulates a dice).
8 Write a function ET count()in
python which should read
each character of text
file”TESTFILE.TXT” and
then
count and display the count
of occurrence of alphabets E
and T individually (including
small case e and t too).
9 Write a program that copies
a text file “source.txt” onto
“target.txt” barring the lines
starting with a”@” sign.
10 Write a python program to
implement returning values
from function.
11 Write a function in python
that count numbers of ‘Me’
or ‘My’ words present in a
text file. ”Story.txt”.
If the “Story.txt” contents
are as follows –
My first book was ‘Me and
My Family ‘ . it gave me the
chance to be known to the
world.

12 Write a program to create a


CSV file to store student data
(Roll No., Name, Marks).
Obtain data from user and
write 5 records into the file.
13 Write a program to a binary
file called emp.dat and write
into employee details of
some employees available in
the form of dictionaries.

14 Write a program to get data


Roll No., Name, and Marks,
from the user and write into
binary file the program
should be able to get data
from user and write onto a
binary file .The program
should be able to data from
user and write onto the file
as long as user want.

15 Create a python program to


implement stack operations.

My SQL Queries
16 SQL Commands Exercise -1
17 SQL Commands Exercise -2
18 SQL Commands Exercise -3
19 SQL Commands Exercise -4
20 SQL Commands Exercise -5

My SQL Connectivity
21 Create a python program to
integrate MYSQL with
python (updating records).
22 Program to connect with
database and delete the
entered empno.
23 Create a python program to
integrate MYSQL with
python (inserting records
and displaying records).
24 Create a python to integrate
MYSQL with python
(searching and displaying
records).

You might also like