The document contains a Python script that reads a text file named 'Hello.txt' from a specified directory. It splits each line into words and prints each word followed by a '#' character on the same line. Finally, it closes the file after processing all lines.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views1 page
Solution To Prog
The document contains a Python script that reads a text file named 'Hello.txt' from a specified directory. It splits each line into words and prints each word followed by a '#' character on the same line. Finally, it closes the file after processing all lines.