Is there a logical difference between 'not ==' and '!= (without is)
问题 Is there a substantial difference in Python 3.x between: for each_line in data_file: if each_line.find(":") != -1: #placeholder for code #more placeholder and for each_line in data: if not each_line.find(":") == -1: #placeholder for code #more placeholder My question isn't particular to the above usage, but is more general or essential - is this syntactical difference working in a different way, even though the result is the same? Is there a logical difference? Are there tasks where one is