Assuming one has a string like so:
my_line = 'this is a line of text\n'
and wants to check for the absence of a word, e.g., the word 'row'
.
Is there any difference between using:
a) if not 'row' in my_line:
and
b) if 'row' not in my_line:
Are the two exactly the same in this case? Is there any case in which the two diverge?