Source Code
file=open("demo.txt","r")
doc=file.readlines()
for i in doc:
words=i.split()
for a in words:
print(a+"#")
file.close()
OUTPUT
This is python programming and PHP programming.
This#
is#
python#
programming#
and#
PHP#
programming.#
Source Code
file=open("demo.txt","r")
doc=file.readlines()
for i in doc:
words=i.split()
for a in words:
print(a+"#")
file.close()
This is python programming and PHP programming.
This#
is#
python#
programming#
and#
PHP#
programming.#
Hello, my name is G Krishna. I'm Creating this blog for the students who are beginners.
Learn More →
No comments:
Post a Comment