Domanda di colloquio di Fyle

Write Python code to traverse a list and check if the element is present in the list.