1. Write a program that uses a function called find_in_list() to check for the position o f the first occurrence of v in the list passed as parameter (1st) or -1 if not found. The header for the function is given below

def find_in_list (1st, v ):
“”” lst – a list
v – a value that may or may not be in the list “””

# Code
def find_in_list(lst, v):
for i in range(len(lst)):
if lst[i] == v:
return i
return -1 # if the value v is not found -1 is returned

l = [1, 2, 3, 4]
print(find_in_list(l, 3)) # 2
print(find_in_list(l, 5)) # -1