def alphabet_position(letter):
    """Returns an index number based on the passed 
    letter's position in the alphabet"""
    mapping = "abcdefghijklmnopqrstuvwxyz"
    ind = mapping.index(letter)
    return ind