def list_first():
    return 0 in a

def dict_first():
    return 0 in da

def list_last():
    return 9999 in a

def dict_last():
    return 9999 in da
if __name__ == '__main__':
    for f in ['list_first', 'dict_first', 'list_last', 'dict_last']:
        pass
Python, find out that a list does not have specific item