Slicing Creates New Values Global frame list 1 digits=[1,8,2,8] 0 1 2 digits 1 8 2 8 2 start digits[:1] start 3 middle digits[1:3] middle list 4 end digits[2: end 40 →5ful1=digits[:] 1 full list 01 82 list 1 2 8 list 0 1 2 8 2 8 Interactive Diagram
Slicing Creates New Values 8 Interactive Diagram
Processing Container Values
Processing Container Values
Sequence Aggregation 0
Sequence Aggregation 10
Sequence Aggregation Several built-in functions take iterable arguments and aggregate them into a value 0
Sequence Aggregation Several built-in functions take iterable arguments and aggregate them into a value 10
Sequence Aggregation Several built-in functions take iterable arguments and aggregate them into a value sum(iterable[,start])->value Return the sum of an iterable of numbers (NOT strings)plus the value of parameter 'start'(which defaults to 0).When the iterable is empty,return start. 70
Sequence Aggregation Several built-in functions take iterable arguments and aggregate them into a value • sum(iterable[, start]) -> value Return the sum of an iterable of numbers (NOT strings) plus the value of parameter 'start' (which defaults to 0). When the iterable is empty, return start. 10