human
Can you show me a Python program to get the index of a tree item.
assistant
Here is a Python program to get the index of a tree item

import random

def get_index(tree, item):
    """Get the index of item in a tree.

    :param tree:
    :param item:
    :rtype: int
    :return:
    """
    return tree.index(item)

# Enter the tree
tree = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l','m', 'n', 'o', 'p', 'q', 'r','s', 't', 'u', 'v', 'w', 'x', 'y', 'z']

# Calling the function
print((get_index(tree, 'a')))

#Example Output
# 0

#Remember to inspect code for bugs.