Design a python program that returns the index of the first occurrence of an item in a given list
item = 7
list = [1, 4, 8, 7, 5, 9, 7]
def index_first_occurrence(item, list):
    for i in range(len(list)):
        if list[i] == item:
            return i
    return -1