Difference between if not: and if False:
Difference between if not: and if False: Question: I have a probably quite simple question but was wondering between the difference of these two statements: if not os.path.isfile(file): #Do some stuff if os.path.isfile(file) is False: #Do some stuff What are the differences (if any) between the two? To my understanding they both return a True …