Having a Python list, containing same length strings, like the following one:
input_list = [ "abc", "def", "ghi" ]
How can I compare character by character all the strings and do the difference between them? Each string has to compare the other once.
list[0] with list[1]
list[0] with list[2]
list[1] with list[2]
Example of a comparison:
"a" with "d"
"b" with "e"
"c" with "f"
The number of string-type elements in this list may change, but the length of the strings will always be the same.