I'm having some trouble understanding why is there a Traceback for this line of code when it works if the sequence is switched.
The line of codes are :
1)if words[0] != "From" or len(words) < 1 :
(line 9, left file, gives Traceback)
2)if len(words) < 1 or words[0] != "From" :
(line 10, right file, works)
I tried replacing the one on the left with the 'working' line which works. So I'm just curious why is there a need to be specific in the sequence.