Use summation notation to express how many times line 4 is executed in the segment of an algorithm below. Simplify the sum. What is the Big O? code example
Example: big o theory
def item_in_list(to_check, the_list):
for item in the_list:
if to_check == item:
return True
return False