Highest Even
def highest_even(li):
if li.count == 0:
return -1
res = 0
for item in li:
if item % 2 == 0 and item > res:
res = item
return res
print(highest_even([10,2,3,4,8,11]))INFO
def highest_even(li):
if li.count == 0:
return -1
res = 0
for item in li:
if item % 2 == 0 and item > res:
res = item
return res
print(highest_even([10,2,3,4,8,11]))