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

The == operator performs comparison and returns a boolean value. Since b equals 3, the expression b == 3 evaluates to True, which is then assigned to variable a. The print statement outputs the boolean True.