Skip to content
CodeItRaw
Code Reading
/
A Pair That Makes Ten
Path
Play
Daily
Leaderboard
tr
Break the Code
A Pair That Makes Ten
Write a list for which this function gives the wrong answer.
1
def
has_pair
(values):
2
for
v
in
values:
3
if
10
- v
in
values:
4
return
True
5
return
False