Question: Choose the correct syntax to complete the code below in order to print [ 1 , 2 , 3 , 4 , 5 ] as

Choose the correct syntax to complete the code below in order to print [1,2,3,4,5] as the output.
my_list =[3,2,5]
XXX
print(my_list)
Select one:
a.
my_list.extend([1,4])
my_list.sort()
b.
my_list.sort()
my_list.append([1,4])
c.
my_list.append([1,4])
my_list.sort()
d.
my_list.insert(0,[1,4])
my_list.sort()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!