Computer Science, asked by rishabraj02seppbp789, 30 days ago

Write a python program to read a text file and reverse the words starting with the letter 'i' or 'm'.

Answers

Answered by kamalhajare543
3

Answer:

— Given a text file. The task is to reverse as well as stores the content from an input file to an output file.

Answered by ScariousKnight
34

Here is your answer

file = open('file.txt', 'r')

while 1:

# read by character

char = file.read(1)

if not char:

break

print(char)

file.close()

Hope This Helps You ❤️

Similar questions