#Author: James Tam #Version: October 28, 2024 #Learning objective: checking if a particular file is locatied at a specific location. import os FILE_PATH = "C:/231F 2024/www/notes/powerPoint/" FILE_NAME = "input_file.txt" if(os.path.exists(FILE_PATH+FILE_NAME)): print("File %s exists in the location %s" %(FILE_NAME,FILE_PATH)) else: print("File %s not found in location %s" %(FILE_NAME,FILE_PATH))