def diff(str1: str, str2: str):
if len(str1) != len(str2):
return -1
elif str1 == str2:
return 0
else:
count = 0
for i in range(len(str1)):
if str1[i] != str2[i]:
count+=1
return count
str1 = input('Введите первую строку: ')
str2 = input('Введите вторую строку: ')
def diff(str1: str, str2: str):
if len(str1) != len(str2):
return -1
elif str1 == str2:
return 0
else:
count = 0
for i in range(len(str1)):
if str1[i] != str2[i]:
count+=1
return count
print(diff(str1, str2))