samedi 31 août 2019

how to get just one line of a text file in a string in python3.x?

I am working on a word guessing game and i have created a text file with each line being a word(it's 1000 line). I don't want to get the whole text file into memory i just want a random line of the text put into a string.




Aucun commentaire:

Enregistrer un commentaire