Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
#!/usr/bin/env python3
|
|
#title :6-2.py
|
|
#description :Opdracht 6.2 - Files Lezen
|
|
#author :Marcel Haazen
|
|
#email :marcel@haazen.xyz
|
|
#date :03-10-2019 - 13:28
|
|
#version :0.1
|
|
#usage :python3 6-2.py
|
|
#notes :
|
|
#python_version :3.7.4
|
|
#==============================================================================
|
|
|
|
file = open("kaartnummers.txt", "r")
|
|
for line in file:
|
|
fields = line.split(",")
|
|
print(fields[1].rstrip(), "Heeft kaartnummer:", fields[0])
|