Computer Science, asked by clashroyal, 4 months ago

Write a function in python to read lines from file “POEM.txt” and display all
those words, which has two characters in it.
For e.g. if the content of file is
O Corona O Corona
Jaldi se tum Go na
Social Distancing ka palan karona
sabse 1 meter ki duri rakhona
Lockdown me ghar me ho to online padhai karona
O Corona O Corona Jaldi se tum Go na
Output should be : se Go na ka ki me me ho to se Go na

Answers

Answered by sravya5198
1

Answer:

In this post, we will learn how to read and write files in Python.

Working with files consists of the following three steps:

Open a file

Perform read or write operation

Close the file

Similar questions