Python newbie here. I have the following code to compare two strings using difflab library. The output is prefixed with '+','-' for words which are different. How to get only the differences printed without any prefix?
The expected output for the below code is
Not in first string: Nvdia
Not in first string: IBM
Not in second string: Microsoft
Not in second string: Google
Not in second string: Oracle
or just Nvdia, IBM, Microsoft, Google, Oracle
import difflib
original = "Apple Microsoft Google Oracle"
edited = "Apple Nvdia IBM"
# initiate the Differ object
d = difflib.Differ()
# calculate the difference between the two texts
diff = d.compare(original.split(), edited.split())
# output the result
print ('\n'.join(diff))
Thanks!