+ 2
What is len for?
thx for answering
3 odpowiedzi
+ 1
it gives the length of a list
0
which could be useful for displaying to the user how many records a table has (like in Google search when it says 20,000 results found), or so code can make decisions on how to handle a list (perhaps it needs to do something different if the list is huge for the purposes of your code) - if the list has nothing in it do thing a, if list just has one thing do b, if list has 2-100 things do c, if list has over 100 do d
0
displays how long a word/list/number is