A .len()

Read(144) Label: seqeunce, length, integer,

Description:

Get the length of a sequence.

Syntax:

A.len()

Note:

The function gets the length of sequence A.

Parameters:

A

Sequence object

Return value:

An integer

Example:

 

A

 

1

=[1,2,4]

 

2

=A1.len()

3

3

=["a","b"].len()

2

4

=[]

 

5

=A4.len()

0