import os os.path.isfile('file.txt') #dönen değer True veya False olacak. ... if os.path.isfile == True: print('ikinci girişiniz')