Your loop condition never becomes False -- This will print “Found” but keep looping, because you never told it to stop.
t = (3, 7, 10, 1) i = 0 while i < len(t): if t[i] == 10: print("Found") i += 1