What is displayed after the following code is entered into a Python interpreter?

IT Questions BankCategory: Introduction to IoTWhat is displayed after the following code is entered into a Python interpreter?

What is displayed after the following code is entered into a Python interpreter?

addition = 22 +10
print(addition)
  • (syntaxerror)-...as there should not be a space between the numerical values
  • [22]+[10]
  • 32
  • nothing ( because the print command is wrong)

Explanation: Refer to curriculum topic: 2.1.3
The Python interpreter will perform the operation and display the result, 32.

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