Write a function in Python which will search an element of a list.
Implement search_element(items, target) to return the zero-based index of the first occurrence of target in items. Return -1 if the target does not appear. The list may be empty and may contain duplicate values.
Examples:
items = [4, 9, 2, 7], target = 2 returns 2.items = [5, 3, 5], target = 5 returns 0.The function should accept a list and a single comparable target value, and return an integer.
items and target support equality comparisondef search_element(items, target):