Skip to content
CodeItRaw
Code Reading
/
Find the Largest
Path
Play
Daily
Leaderboard
tr
Bug Hunt
Find the Largest
This function should return the largest number in the list, but some lists get a wrong answer. Click the buggy line and pick the kind of bug.
Click the line you think is wrong.
1
def
largest
(values):
2
best =
0
3
for
v
in
values:
4
if
v > best:
5
best = v
6
return
best