Thursday , September 19 2024

The value eventually assigned to x is equal to: x = 1 x = x == x

Questions BankCategory: Python Essentials 1The value eventually assigned to x is equal to: x = 1 x = x == x
The value eventually assigned to x is equal to:

x = 1
x = x == x
  • False
  • True
  • 1
  • 0

Explanation: The == operator is more prominent in the operator hierarchy than the = operator. Therefore, the operation on the right is evaluated before the one on the left.

More Questions: Python Essentials 1 – Module 3 Test