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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!