Multiple choice technology programming languages

What is the value of a? b = 3 a = b == 3 print a

  1. Not assigned yet

  2. 3

  3. 1

  4. True

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In Python, the expression b == 3 evaluates to the boolean value True. Since b is assigned 3, a = b == 3 assigns True to a, which is then printed.