def process_passport(passport):
    """Turn a passport list into a dictionary."""
    pass_string = ' '.join([n.strip('\n') for n in passport])
    pass_list = pass_string.split(' ')
    pass_dict = {}
    for n in pass_list:
        key, entry = n.split(':')
        pass_dict[key] = entry
    
    return pass_dict