What am I doing wrong?def compare_files(file_name1,file_name2):# open the files with open(file_name1,'r')as f1,open(file_name2,'r')as f2:# using for loop in that statement for line_num,(line1,line2) in enumerate(zip(f1,f2),start=1): if line1!=line2: return line_num,line1,line2 return None def main(): # Prompt the user for file names file_name1=input("Enter the name of the first text file:") file_name2=input("Enter the name of the second text file:") # Compare the contents of the two files result=compare_files(file_name1,file_name2) # Output the result if result is None: print("Yes") else: line_num,line1,line2=result# print the no answer in the statement print(f"NonFiles differ starting at line{line_num}:n{file_name1}:{ ()}n{file_name2}: { ()}") if __name__=="__main__": main()
A. Code structure and indentation issues
B. File input/output errors
C. Missing function definitions
D. Logic errors in the code