From dca9981ea23f6cd84762f6683598c0d56e4a3ff3 Mon Sep 17 00:00:00 2001 From: Do Huy Duc Date: Sat, 15 Jun 2024 16:28:20 +0700 Subject: [PATCH] Changing comment for Sonar analysis checking --- Week_2/levenshtein.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week_2/levenshtein.py b/Week_2/levenshtein.py index b579a026..c219f4a9 100644 --- a/Week_2/levenshtein.py +++ b/Week_2/levenshtein.py @@ -25,7 +25,7 @@ def leveshtein(word1 : str, word2: str) -> float: #Fill the matrix for i in range(1,len_word1 + 1): for j in range(1,len_word2 + 1): - #iterate through every element of matrix, skipping the 1st row and cal which has been filled +#iterate through every element of matrix, skipping the 1st row and cal which has been filled if word1[i - 1] == word2[j - 1]: # matrix[i][j] = matrix[i-1][j-1] #the element of matrix gain the previous value from its main diagonal