anyone knows why this does not give me the shared letters properly?
#shared_positions = 0 #x = 0 #while True: # print('Enter two words of the same lenght') # word_1 = (input('Enter the first word: ')) # word_2 = (input('Enter a second word: ')) # l_word_1 = len(word_1) # l_word_2 = len(word_2) # sums = word_1 + word_2 # if range(l_word_1) == range(l_word_2): # break # else: # print('The words have different sizes, please enter words of the same size.') # #for x in range(0, l_word_1): # if word_1[x] == word_2[x]: # shared_positions += 1 # print('They share {} at position {}.' .format(word_1[x], x)) #print('The total share of letters is ', shared_positions)