I have two strings say:
s_1 = "This is a bat"
s_2 = "This is a bag"
in a Qualitative manner they could be similar (1) or not (0), in the above case they are not similar because of "g", while in quantitative manner i can see certain amount of dissimilarity is there how can i calculate this dissimilarity of one latter "g" from s_1 to s_2 using python.
I write down one simple code:
Per_deff = float(((Number_of_mutated_sites)/len(s_1))*100)
This code tells us "per_deff" between two string of identical length, what if they are not in identical length. How can i solve my problem.