Skip to content

Commit

Permalink
Update list_comparing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daedalus committed Jan 3, 2024
1 parent 8a5d99f commit c197483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions list_comparing.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def list_compare1(A,B):
def list_compare2(A,B):
tmp = 0
n = 0
lA = len(A)
lA=len(A)
while tmp == 0 and n < lA:
tmp += abs(A[n]-B[n])
n += 1
return n == lA - 1
return n == lA

0 comments on commit c197483

Please sign in to comment.