QuestionQ79

VerifiedComputer Programming and Python Fundamentals

What is the resulting output of the following code when the user enters 2 and 4?

Question Image

Explanation

Python's input() function returns strings. The + operator concatenates the values "2" and "4", producing 24.

Community Discussion

No comments yet. Be the first to start the discussion!