Question: 2) Write a function called smallest_even (li) that takes a list of positive doubledigit integers as an argument and returns the smallest even integer in
2) Write a function called smallest_even (li) that takes a list of positive doubledigit integers as an argument and returns the smallest even integer in the list. The list is guaranteed to have at least one integer in it. For example, if li=[42,37,22,99,87,88], the function should return 22 . Your function should not use list indexing. Instead, it should use a for-each loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
