ventilaar
/
twitter_zuil
Archived
1
Fork 0
This repository has been archived on 2021-06-10. You can view files and clone it, but cannot push or open issues or pull requests.
twitter_zuil/homework PROGA/pe_6_2.py

20 lines
335 B
Python

def pretty_print():
# open file
file = open('pe_6_2_kaartnummers.txt','r')
# put every line into list
kaartregel = file.read().splitlines()
# for every index split ', ' and print in nice format
for i in kaartregel:
ok = i.split(', ')
print(ok[1]+'heeft kaartnummer: '+ok[0])
# close file
file.close()
pretty_print()