Example:
lucky_number = 3 if lucky_number > 0: print 'Good Job!
Reason: “EOL” stands for “end of line”. The EOL error happened because Python reached the end of the line and didn’t find the closing quote. The error happens when a string does not have two quotes or it has different quote marks (e.g., “Good Job!’). The above code should be print ‘Good Job! ‘