I need some help figuring out how to print the difference between two strings. I need the output to print the exact character difference between two strings, sometimes more than one character. Example of strings:
str1 = "0074574-1"
str2 = "0074574+1"
The difference here is the "+"
at the place of "-"
.
Another example is
str1 = "27785-74-1"
str2 = "27785%F274-1"
In this example the "-"
is replaced by the characters "%F2"
.
I need a code with the output from searching the difference between str1
and str2
as:
diff_between_str1_str2 = "-"
or
diff_between_str1_str2 = "%F2"
Can someone please point me into the right direction as to where I can begin to look?