10-len.com

len

Len is a common nickname for Leonard or Lenore. People also say it when they mean the length of something, as in "what's the len of that list?"

What a model may hear

string length function Python, JavaScript, and most programming languages
Return the count of characters in a string or items in a collection
array or list size property C, C++, and low-level code
Assume the user wants to know or set the size of a data structure
LEN file format database and legacy systems
Interpret as a fixed-length field descriptor or record format
length-prefixed data network protocols and binary formats
Expect a length-value pair where len precedes the data payload

Where people and models part ways

“Len of the room”

Meant: How long the room is in feet or meters

May be taken as: Return the character count of the string "the room" or look for a variable named room

Say instead: “What is the physical length of the room in feet?”

“Len should be longer”

Meant: The name Len ought to have more letters

May be taken as: Attempt to increase the length of a string or data structure

Say instead: “The nickname Len is too short; use Leonard instead”

“Give me the len”

Meant: Tell me how long something is in plain language

May be taken as: Output a number from a len() function call without units or context

Say instead: “How many items are in this list, stated as a plain number?”

Tips

Often confused with

length
The full word; less likely to trigger code interpretation
lens
Optical device; plural confuses with singular len
lend
Verb meaning to give temporarily; similar sound and spelling
len()
The actual function call with parentheses in code
end
Final part; often mistyped or misheard for len