In python I want to diff two files using commands.getoutput(‘diff a.txt b.txt’) and if they are the same, print “Success!”. How would I go about writing an if statement that is satisfied if they are the same?
In python I want to diff two files using commands.getoutput(‘diff a.txt b.txt’) and if
Share
1 Answer