The correct answer is:
B. doesn't change the list's length
Explanation:
The code vals[0], vals[1] = vals[1], vals[2] swaps the values at indices 0 and 1 with the values at indices 1 and 2, respectively. This operation modifies the elements within the list but does not change the length of the list. The list still has the same number of elements after the assignment.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
hovnival
1 month, 1 week agochristostz03
5 months, 2 weeks ago