# 순차탐색 import random data = random.sample(range(100), 10) def sequential_search(data, search): for i in range(len(data)): if data[i] == search: return i return -1 sequential_search(data, 13)