>>> list(1, 2, 3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: list() takes at most 1 argument (3 given)
>>> list((1, 2, 3))
[1, 2, 3]
In filbert, list(1, 2, 3) evaluates to an empty list.
Note that in filbert list() correctly evaluates to an empty list and list((1, 2,3)) to a non-empty list.
list(1, 2, 3)
should give a TypeError.In filbert,
list(1, 2, 3)
evaluates to an empty list. Note that in filbertlist()
correctly evaluates to an empty list andlist((1, 2,3))
to a non-empty list.