I having a text like Apple|MicroSoft|Oracle|Windows|Mac|.I wish to print like
Apple
Microsoft
Oracle
Windows
Mac.
I used .split() keword, but it prints like,
A
p
p
l
e
|
M
i
c
r
o
s
o
f
t
|
…
why it will print like this if any alternate solution for this. Thanks in advance.
This should work: