import csv with open('entreprise.csv', 'r', encoding='utf-8') as donnees: fichier = csv.DictReader(donnees, delimiter=';') c1 = 0 c2 = 0 d1 = 0 d2 = 0 for ligne in fichier: if ligne['Genre'] == 'F' and ligne['Annee'] == '2020': c1 = c1 + 1 if ligne['Genre'] == ... and ligne['Annee'] == ...: c2 = c2 + 1 if ligne['Genre'] == ... and ligne['Annee'] == ...: d1 = d1 + 1 if ...: ... print(c1, c2, d1, d2)