Question: Help All code in Python please Question one I have some code but dont know whats wrong please help. Again all python Programming Exercise 4.10
Help All code in Python please Question one I have some code but dont know whats wrong please help. Again all python

Programming Exercise 4.10 Programming Exercise 4.10 ramming Exercise 4.10 Instructions Write a script named difpy This script should prompt the user for compare the contents of the two files to see if they are the same. 1. If they are, the script should difpy i same.py + Instructions Instructions First tnputEnter the furst ftle nane: " second- unput"Enter the second file nane: one.txt E 4d 3p the names of two text files and Thts is text. abc 123 S textf.read(). split("V,-) /> s open(second, sameAsOnetxt 8 texti s.read).split( n) 123 simply output "Yes 2. If they are not, the script should te, tf text textl printcyes." Thts is text. abc 123 Comparing files that are the same: output "No", follawed by the first lines of each file that differ from each other 12 3 else 4txt 5tt1- 16 for a in text: 17 Enter the first fite nane: one Enter the second ftle nane: sa The input loop should read and compare lines from each file. The oop should break as soon as a pair This ts text txt.append(a) of different lines is found. 123 Comparing files that are different: 19 for b in texti input and output alon with relevan txt1.append(b) 21 count 22 txt[count] ttl[count]: Enter the furst file nane: one Comparing files that are the same Enter the second ftle nane:di files: Enter the first file nane: one Enter the second file nane: sa count abc Yes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
