vendredi 30 octobre 2015

Reading a file in Python won't read the first line

I am reading a text file, separating the word and the number with the comma then adding them into separate lists however, the first name gets omitted. Here is my code.

for line in keywordFile:
     line = keywordFile.readline()

Aucun commentaire:

Enregistrer un commentaire