Read a text file line by line and display each word separated by a #
Answers
Answered by
14
Answer:
file=open("C:\python programs\\test.txt","r")
doc=file.readlines()
for i in doc:
words=i.split()
for a in words:
print(a+"#")
file.close()
Explanation:
plz mark me as brainest
Similar questions
English,
4 months ago
Math,
4 months ago
CBSE BOARD X,
4 months ago
Business Studies,
9 months ago
English,
9 months ago
English,
1 year ago
Computer Science,
1 year ago