Question #912

What is the output of the code snippet below?
print(len([None, None]))

In the example above, the list contains 2 elements: both being None . Its length will be 2. (docs.python.org/3/tutorial/datastructures.html#more-on-lists)


Comment on Disqus:

Question difficulty: ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต