write a python program to read a text file line by line and display each word separated by #.
don't spam... help fast
Answers
Answered by
3
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:
Hope it helps
Mark me as a brainlist pls
Similar questions