Skip to main content

xsum

Sum of ints and lists.

def xsum(
nums: list
) - > int

Sum of ints and lists.

Parameters

NameTypeDescription
numslistA collection of integers or nested iterables containing integers to be aggregated

Returns

TypeDescription
intThe total sum of all individual integers and the flattened contents of any iterable elements within the input list