Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What is the function of len ()?
What is the function of len ()?
The len () function returns the number of characters of a text string in a specified cell.

LEN function is often used in Excel software. Its function is to return the number of characters in a text string, and its grammatical format is Len(text). Its mbth is the LEN function, and the parameter Text is the text of the length to be found, indicating that the function is used for double-byte characters. The data type of the return value of the text type variable is long integer. This function returns the length of the string on successful execution and-1 on error. If the value of any parameter is NULL, the Len () function will return NULL.

Len () function: Returns the length of string, list, dictionary, tuple, etc. Syntax: len(str) parameters: str: string, list, dictionary, tuple, etc. To be calculated.

Len function syntax

Function: Returns the length of a string, list, dictionary, tuple, etc. When the object is a string, the len () function returns the number of characters in the string. Use len () built-in sequence, and a sequence is a container for sorting items. List, tuple and string are three basic built-in sequences in Python.

London_coordinates, your len () uses the same method to find the length of the strings greeting, listoffice_days and tuple. These three data types are all valid parameters len (). The function len () always returns an integer because it counts the number of items in the object passed to it.