Create a Python program to search for an item in a list and return its index.
[2, 3, 5, 7, 11], target = 5
def linear_search(list, target):
  for index, item in enumerate(list):
    if target == item:
      return index
    return -1

result = linear_search([2, 3, 5, 7, 11], 5)
print(result)