What is the output when the following code is entered into a Python program interpreter?

IT Questions BankCategory: Introduction to IoTWhat is the output when the following code is entered into a Python program interpreter?

What is the output when the following code is entered into a Python program interpreter?

[1,2,4,5] + [3,6]
  • [1,2,4,5,3,6]
  • [21]
  • [1,2,3,4,5,6]
  • [12]+[9]

Explanation: Refer to curriculum topic: 2.1.3
The Python interpreter performs concatenation of two lists without reordering the list elements

Exam with this question: Introduction to IoT – Chapter 2 Quiz Answers

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x