Question: What will the following code display? numbers = [1, 2, 3, 4, 5] my_list = numbers[3:] print(my_list)
What will the following code display?
numbers = [1, 2, 3, 4, 5]
my_list = numbers[−3:]
print(my_list)
Step by Step Solution
3.30 Rating (159 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
