[None]
does not mean that there is nothing in the list. None is a keyword in python which has a special meaning. It is like NIL
or NULL
in other languages.
When you say [None]
, you are saying "I would like to have a list which contains the special object called None
". This is different than saying "I would like a list which contains no elements" (by typing []
).