Question: What is the result of this code? my _ first _ list = [ ' a ' , ' b ' , ' c '

What is the result of this code?
my_first_list =['a','b','c']
my_second_list =['d','e','f','g']
my_third_list = my_second_list[0:1]+ my_first_list[1:2]
my_third_list.append('h')
print (my_third_list[1:])
['d','b']
['d','h']
An error, because the second value is missing for printing my_third_list.
['b','h']

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!