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
Business Studies,
10 months ago
English,
10 months ago
English,
1 year ago
Computer Science,
1 year ago