I tried to compute the difference between two sentences as follows:
import difflib
text1_lines = "I understand how customers do their choice. Difference"
text2_lines = "I understand how customers do their choice."
diff = difflib.ndiff(text1_lines, text2_lines)
I would like to get a difference
but I am not getting that. What am I doing wrong ? Thanks for letting me know.