KEMBAR78
Assignment 5 | PDF
0% found this document useful (0 votes)
30 views1 page

Assignment 5

The document outlines a series of file handling assignments in Python. It includes tasks such as reading a text file, counting characters, copying odd lines to another file, creating a binary file for student records, and generating multiple text files named after the alphabet. The assignments aim to enhance practical skills in file manipulation using Python.

Uploaded by

Anirban Sadhu
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)
30 views1 page

Assignment 5

The document outlines a series of file handling assignments in Python. It includes tasks such as reading a text file, counting characters, copying odd lines to another file, creating a binary file for student records, and generating multiple text files named after the alphabet. The assignments aim to enhance practical skills in file manipulation using Python.

Uploaded by

Anirban Sadhu
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/ 1

Assignment

File Handling

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

Q2. Read a text file and display the number of vowels, consonants,
uppercase, lowercase characters in the file.

Q3. Python program to copy odd lines of one file to other

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

Q5. Generate 26 text files named A.txt, B.txt, and so on up to Z.txt

PRADYUMNA KUMAR TRIPATHY, SILICON INSTITUTE OF TECHNOLOGY, BHUBANESWAR 1

You might also like