Suppose we have two numbers a and b we need to calculate the continuous matching digits between the two numbers.
some examples are shown below:
- a = 123456 b = 456 ==> I need count as : 3 digits matching
- a = 556789 b = 55678 ==> I need count as : 5 digits matching
I don't want unique but continuous matching numbers and need the count. Also display the matching ones will be helpful. Also can we can we do in two different lists if numbers?
I am very new to python and trying out few things. Thanks