def f(L,m): R = [] for i in range(len(L)): if L[i] > m: R.append(L[i]) return R