# Read a text file line by line and display each word separated by a #f=open("ram.txt")data=f.readlines()for line in data: word=line.split() for i in word: print(i,"#",end='')f.close()Output
No comments:
Post a Comment
for more information please share like comment and subscribe