You should definitely use this one.
from os.path import existsif exists("file") == True: print "File exists."elif exists("file") == False: print "File doesn't exist."
You should definitely use this one.
from os.path import existsif exists("file") == True: print "File exists."elif exists("file") == False: print "File doesn't exist."