Ask Question
29 February, 09:15

What is the output of the following Python program? list1 = [2, 3, 4] list2 = [1, 5] list3 = [0] list3 = list2 + list1 print (list3) A. [0, 1, 5, 2, 3, 4] B. [1, 5, 2, 3, 4] C. [2, 3, 4, 1, 5] D. None of the above

+5
Answers (1)
  1. 29 February, 09:24
    0
    Answer: the answer is b

    Step-by-step explanation:

    from the initial list 3 is contain 0 that is [0]

    but now list has been updated to list 2 + list 1, so the elements contains in list 3 will be list 2 plus list 1

    [1,5,2,3,4]
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the output of the following Python program? list1 = [2, 3, 4] list2 = [1, 5] list3 = [0] list3 = list2 + list1 print (list3) A. [0, ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers