def scan_k(arr, val, n):
    counter = 0
results = set()
for i in range(len(arr)):
    if arr[i] > val:
        counter += 1
else:
    counter = 0
continue
if counter >= n:
    results.add(arr[i - n + 1:i])
return results
Scanning list for 5 consecutive values greater than x