Commit 5a4a0786 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

fix exercise about find largest value in list

parent fdc93663
......@@ -37,11 +37,11 @@ Exercise
display the largest element in list (containing float or integer only)?::
l = [1,2,3,4,58,9]
higest = l[0]
for i in l:
highest = l[0]
if i > highest:
highest = i
print i
print highest
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment