Computer Science, asked by niko11, 4 months ago

Find the output of the following code

list1=[‘a’,’b’,’c’]

list2=[‘h’,’I’,’t’]

list3=[‘0’,’1’,’2’]

print(“List1=”, list1)

print(“List2=”,list2)

print(“List3=”,list3)

list3.extend(list1)

list3.extend(list2)

print(“After adding elements of two lists individually, list now is:”)

print(list3)​

Answers

Answered by rahulehh
1

List1= [‘a’,’b’,’c’]

List2=[‘h’,’I’,’t’]

List3=[‘0’,’1’,’2’]

After adding elements of two lists individually, list now is:

[‘0’,’1’,’2’,‘a’,’b’,’c’,‘h’,’I’,’t’]

Similar questions