Generic List Length Calculation

Function: Generic list length calculation, get the list length, and when the list element is a number, calculate its sum.

Input Parameters:

Name Type Valid Range Default Value Meaning

Input list

AnyType

None

None

Enter a list, but a list of different data types.

Output Parameters:

Name Type Valid Range Default Value Meaning

List length

Integer

None

None

Number of elements in the list.

Sum of list data

Integer

None

None

Sum of list data, add directly when the elements in the list are numbers, add the total length of each list as a result when the list is inside the list, and return None when the list is inside other data types.