Update the python program by including a function that finds the shortest word in a list.
my_list = ["hello", "world", "this", "is", "a", "test"]
def find_shortest(input_list):
    shortest = input_list[0]
    for word in input_list:
        if len(word) < len(shortest):
            shortest = word
    return shortest

shortest_word = find_shortest(my_list)
print(shortest_word)