Finding Nemo
import time
nemo = ["nemo"] * 100000
def findNemo(array):
for item in array:
if item == "nemo":
print("Found NEMO!")
start = time.perf_counter()
findNemo(nemo)
end = time.perf_counter()
print(f'Call to find Nemo took {(end - start) * 1000:.2f} milliseconds')
INFO