+ 2

What is len for?

thx for answering

24th Jan 2017, 11:34 AM
Talhah Peerbhai
Talhah Peerbhai - avatar
3 Answers
+ 1
it gives the length of a list
24th Jan 2017, 11:38 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
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
24th Jan 2017, 1:02 PM
Phil
Phil - avatar
0
displays how long a word/list/number is
1st Feb 2017, 9:26 PM
DerpyOmnister
DerpyOmnister - avatar