am new to Python , But i have text File like :
12345 | 6789 | abcd | efgh
i want my output be Like :
12345
6789
abcd
efgh
=====================
i really don't know the script but i made a lot of scripts by those function split() , strip() , blame blame blame
but i failed to do it so am asking for help is someone can .
i will appreciate any Help .
with open('contacts_index1.txt') as f:
lines = f.read().splitlines("|")