Computer Science, asked by chauhanlucky, 1 year ago

write a program to read a file line by line and print it in python ​

Answers

Answered by Kayoombasha
0

Explanation:

Most people want to achieve their goals but they undermine the importance of self-confidence. The Merriam-Webster dictionary defines self-confidence as confidence in oneself and in one's powers and abilities.Confidence is defined as a quality or state of being certain.

Answered by aftab45
2

Answer:

Python Code:

def file_read(fname):

with open(fname) as f:

#Content_list is the list that contains the read lines.

content_list = f.readlines()

print(content_list)

file_read(\'test.txt\')

Similar questions