if L1=[1,3,5] and L2=[2,4,6] then L1+L2 will yield
[1,2,3,4,5,6]
[1,3,5,2,4,6]
[3,7,11]
[1,3,5,[2,4,6]]
Answers
Answered by
14
Answer:
[3,7,11]
Explanation:
Because 1,3,5 + 2,4,6 = 3,7,11
Answered by
30
Answer:
[1,3,5,2,4,6]
Explanation:
Adding two lists in python returns all the elements on that list and the other list as one list. There's no sorting i.e the order is preserved consider this for example:
l_1=[a,b,c]
l_2=[d,e,f]
where l_1 and l_2 are two lists and a to f are defined identifiers.
when you ask for the program to return
l_1+l_2 you will get [a,b,c,d,e,f] i.e a single list with 1st list's elements being first followed by 2nd lists.
and
l_2+l_1 will return [d,e,f,a,b,c] once again the order is preserved.
Similar questions
Science,
1 month ago
CBSE BOARD XII,
1 month ago
Math,
1 month ago
English,
3 months ago
Math,
9 months ago