Write a python program to read a text file and reverse the words starting with the letter 'i' or 'm'.
Answers
Answered by
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
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