colorfile = "/home/instructor/Desktop/colors.txt"

def lookup_color():
    print()
    color = input("What color would you like to look up? ")
    file = open(colorfile,"r")
    for line in file:
        if line.lower().startswith(color.lower()):
            print(line.strip())
    file.close()

def run_app():
    app_is_running = True
    while app_is_running:
        print("What would you like to do?")
        print("(l) Look up a color.")
        print("(q) Quit.")
        choice = input(">> ")
        if choice=="q":
            print("Bye!")
            app_is_running = False
        elif choice=="l":
            lookup_color()
        else:
            print("I didn't understand your choice.")

run_app()
