b = [0,1,2,3,4,5]
filtered_b = filter(lambda x: x>1, b)
print(list(filtered_b))
I get the error message "Unexpected token name «x», expected punc «,» at line 4: filtered_b = filter(lambda x: x>1, b)"
I use the same code in "regular" python and it works as expected, output is [2, 3, 4, 5].