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