f = open("books.csv", "r") annee = input("Quelle année : ") for r in f: l = r.split(",") if l[3] == annee+"\n": print(str(l[1])) f.close()