Examveda

What is the value of x after the following code: x = 5; x += 3; ?

A. 5

B. 8

C. 3

D. 15

Answer: Option B

Solution (By Examveda Team)

The += operator adds the right operand to the left operand and assigns the result to the left operand.

This Question Belongs to Python Program >> Variable Names And Operators

Join The Discussion

Related Questions on Variable Names and Operators