How do you write a program to read a text line by line and separated by hashtag? in python what is wrong in the code below f = open('python.txt', 'r') line1 = f.readline() print(line1,end='#\n') line2 = f.readline() print(line2,end='#\n') line3 = f.readline() print(line3,end='#\n') line4 = f.readline() print(line4,end='#\n') f.close()
Answers
Answered by
2
Answer:
okay.
mark as brilliant answer
also follow me.
Similar questions