+ 1
in control strutcures at list functions 3rd question why is it 7? please answer
in control strutcures at list functions 3rd question why is it 7? please answer
1 Antwort
+ 1
len is a function that returns the length of an iterable.
Initially the list has 5 elements.
Then one element is appended.
Then another element is inserted (the following elements all move one spot to the right).
So now there are 7 elements in that list.