Single Choice Not Set

QWhat will be the output after the following statements?
x = 3
y = 2
x += y
print(x)

ID: #3406 Python Operator MCQ 404 views
Question Info
#3406Q ID
Not SetDifficulty
Python Operator MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 3
  • B 2
  • C 5
  • D 1
Correct Answer

Explanation

  • It adds right operand to the left operand and assign the result to left operand
  • x+= y is equivalent to x = x + y

Share This Question

Challenge a friend or share with your study group.