Pergunta de entrevista da empresa Fyle

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