write a function that checks whether an element occurs in a list

Solutions on MaxInterview for write a function that checks whether an element occurs in a list by the best coders in the world