def sequential_search(data, key):
    for item in data:
        if item == key:
            return True
    return False


my_list = [3, 6, 2, 9, 4, 7]
key = 6
found = sequential_search(my_list, key)
if found:
    print("elemen ditemukan.")
else:
    print("elemen tidak ditemukan")
