See this python trinket here which implements linear search (a translation of the pseudocode found in the textbook: see slide 9 here).
And see here for a python trinket which implements binary search–again, a translation of the pseudocode found in the textbook: see slides 10-12.