+ 2
how
how the answer is 7
3 ответов
+ 1
After the reforms the number 4 is in the list, so you need to display the fourth element of the list (after zero, first and second).
0
if the answer is 7, then they should have been asked question like this 'if nums[0]=4'
0
simple reasoning: it does NOT matter how new symbols are added into the List, either by APPEND or INSERT, as long as the final function LEN calculates the length of the entire List (e.g. string). There are 5 initial elements, and 2 more were added later... so, we get 5+2 == 7 as the correct answer.