-1
I would like to return the amount of different letters between the two strings, in this case the different letters are "TACG" and "ARGC", soon would have to return 4.
ruby def letras(string_1, string_2)
contador = 0
string_1 = string_1.split("")
string_2 = string_2.split("")
for letra in string_1
for letra_1 in string_2
if letra != letra_1
contador += 1
end
end
end
return contador
end
puts letras 'GGTACGCAB', 'GGARGCAB'