Fix index d'une valeur dans une liste
This commit is contained in:
parent
69f2a6f8a8
commit
cd44b6815a
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -440,7 +440,7 @@ def find_by_common(L1, L2, f_prop):
|
|||
for i, e1 in enumerate(L1):
|
||||
prop1 = f_prop(e1)
|
||||
if prop1 in Lprop2:
|
||||
j = Lprop2.find(prop1)
|
||||
j = Lprop2.index(prop1)
|
||||
e2 = L2[j]
|
||||
found.append((e1, e2))
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue