mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
Fix
This commit is contained in:
parent
1338d85899
commit
31764fa82a
@ -75,8 +75,8 @@ def is_for_table(string1: str, string2: str, count: int) -> bool:
|
|||||||
list1 = list(string1)
|
list1 = list(string1)
|
||||||
list2 = list(string2)
|
list2 = list(string2)
|
||||||
count_n = 0
|
count_n = 0
|
||||||
for element1, element2 in zip(list1, list2):
|
for item1, item2 in zip(list1, list2):
|
||||||
if element1 != element2:
|
if item1 != item2:
|
||||||
count_n += 1
|
count_n += 1
|
||||||
return count_n == count
|
return count_n == count
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user