QuestionQ291

VerifiedComputer Programming and Python Fundamentals

What is the outcome of the following operation?

Question Image

Explanation

Adding an integer and a floating-point number is valid in Python. Because one operand is a float, the sum is returned as a floating-point value: 2.0.

Community Discussion

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