Solution Exercise 9: python algorithm that tests if an element is present in a list

Exercise 9

Write an algorithm in python as a function which takes as a parameter a tuple (L, a) formed by a list L and an element 'a' and which returns True if the element 'a' is present in the list L and False if nope.

Solution




 

Younes Derfoufi
CRMEF OUJDA

1 thought on “Solution Exercise 9: python algorithm that tests if an element is present in a list

Leave a Reply