Returns the number of items in a dict.
This function does not generate a change.
dict.len()
None
Returns the number of items in a dict.
This code uses
len()to return the number of items in a dict:
dict([
[0, 'item 0'],
[1, 'item 1'],
]).len();
Return value in JSON format
2