<filename>Courses/Udacity/CS101/Lesson_5_How_Programs_Run/34-Changing_Lookup/supplied/studentMain.py
# Change the lookup procedure
# to now work with dictionaries.

def lookup(index, keyword):
    for entry in index:
        if entry[0] == keyword:
            return entry[1]
    return None

<filename>Courses/Udacity/CS101/Lesson_5_How_Programs_Run/34-Changing_Lookup/supplied/studentMain.py
# Change the lookup procedure
# to now work with dictionaries.

def lookup(index, keyword):
    for entry in index:
        if entry[0] == keyword:
            return entry[1]
    return None

# Change the lookup procedure # to now work with dictionaries.