What is the perfect counterpart in Python for “while not EOF”
To read some text file, in C or Pascal, I always use the following snippets to read the data until EOF:
To read some text file, in C or Pascal, I always use the following snippets to read the data until EOF:
I am getting an error while running this part of the code. I tried some of the existing solutions, but none of them helped.