Question: What should the result of this code be ? my _ list = [ ' pear ' , 'orange','pineapple','apple','peach','kiwi','banana' ] my _ other _ list

What should the result of this code be?
my_list =['pear','orange','pineapple','apple','peach','kiwi','banana']
my_other_list = my_list
my_other_list.sort()
print(my_list)
print(my_other_list)
a.)
['apple','banana','kiwi','orange','peach','pear','pineapple']['apple','banana','kiwi','orange','peach','pear','pineapple']
b.)
None
c.)
['pear','orange','pineapple','apple','peach','kiwi','banana'] None
d.)
['pear','orange','pineapple','apple','peach','kiwi','banana']['apple','banana','kiwi','orange','peach','pear','pineapple']

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 Databases Questions!