#!/usr/bin/env python3 #title :6-3.py #description :Opdracht 6.3 - Files Lezen #author :Marcel Haazen #email :marcel@haazen.xyz #date :04-10-2019 - 08:21 #version :0.1 #usage :python3 6-3.py #notes : #python_version :3.7.4 #============================================================================== file = open("kaartnummers.txt", "r") n = 0 i = 0 li = 0 for line in file: i = i+1 fields = line.split(",") if n < int(fields[0]): n = int(fields[0]) li = li+1 print("Deze file telt",i,"regels") print("Het grootste kaartnummer is:",n,"en dat staat op regel",li+1) file.close