Skip to content
Snippets Groups Projects
Commit 5a4a0786 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

fix exercise about find largest value in list

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