Question: Given seq1 = [1, 2, 3, 4, 5) and seq2= (1, 2, 3, 4, 5), executing the statement seq1[1] returns 2 and executing seg2[1] also
Given seq1 = [1, 2, 3, 4, 5) and seq2= (1, 2, 3, 4, 5), executing the statement seq1[1] returns 2 and executing seg2[1] also returns 2. If we execute seq1[1] = "Hello' the statement results on having the sequence updated to [1, 'Hello', 3, 4, 5). Would executing seq2[1] = 'Hello to you too' result on the sequence (1, 'Hello to you too, 3, 4, 5)? Justify your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
