Design a Python function to identify the index of a specified element in a list.
This task involves creating a function `find_index` that takes a list and a target element as its parameters. The function will then return the index of the target element if it exists in the list. If not, it will return -1. Keep in mind that Python's indexing starts from 0. ### Parameters - `lst (list)`: The list in which the search is conducted. - `target (int)`: The element whose index needs to be found. ### Return Value The function returns the index of `target` in `lst` if `target` is present in the list; otherwise, it returns `-1`. ### Examples ```python # The element 2 is located at index 1 in the given list find_index([1, 2, 3], 2) # Output: 1 # As 4 is not present in the list, the function returns -1 find_index([1, 2, 3], 4) # Output: -1 # The element 3 is at index 2 in the given list find_index([9, 8, 3], 3) # Output: 2 ```