1
def get_temp(sorted_temps: list[float], el: float) -> int:
3
Search through the sorted temperatures array to find the
4
index of the temperature that matches the element
5
:param sorted_temps: sorted list of temperatures
6
:param el: the target element
7
:return: the index of the matched element
9
Author: Richard Hendricks
12
while el != sorted_temps[i] and len(sorted_temps) > i:
13
return i if i < len(sorted_temps) else -1;