QuestionQ269

VerifiedComputer Programming and Python Fundamentals

What is the expected output from the following code?

Question Image

Explanation

Unary plus does not change a numeric value. Applying it repeatedly to x, whose value is 1, still produces 1, so the printed output is 1.

Community Discussion

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