So in this lesson it says that the line
lambda x: x % 3 == 0
Is equivalent to
def by_three(x): return x % 3 == 0
Which struck me as odd because nothing in that function addresses the individual elements of the list. So I tried it and typed
def by_three(x): return x % 3 == 0 print by_three(my_list)
But as I expected I got an error message
Traceback (most recent call last): File "python", line 8, in <module> File "python", line 6, in by_three TypeError: unsupported operand type(s) for %: 'list' and 'int'
so what's missing here?