The two true sentences about the code are:
C. nums and vals are different names of the same list
D. nums and vals have the same length
Explanation:
When you assign vals = nums, vals becomes a reference to the same list that nums refers to. Therefore, any changes made to the list through either nums or vals will affect the same underlying list.
Since vals and nums are references to the same list, they both have the same length.
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
2 days, 21 hours agoscriptnone
2 months, 1 week agochristostz03
4 months, 1 week ago