I have been struggling to troubleshoot a program, and I believe it comes down to this statement:
while line != '\n' or '':
I am reading a file using readline() and I'm struggling to fix the code in my function. For this while loop, I want it continue with these conditions: - line is not equal to '\n' OR - line is not equal to ''
Why doesn't this statement represent the above situation?