We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
def above_threshold(lst, threshold): result = [] for num in lst: if num > threshold: result.append(threshold) return result lst = [1,2,3,4,5,6] result = over(lst, 3) print(result) # Output: [4, 5, 6]