ExamPlay Light Logo
เข้าสู่ระบบ

Computer Science for IGCSE & O level - Programming (Section 4 - No. 21)

What is the purpose of the `+=` operator in Python (or similar operators in other languages)?
To assign a value.
To subtract a value.
To add a value to a variable and assign the result to the same variable.
To multiply two numbers.

คำอธิบาย

The `+=` operator is a shorthand for adding and assigning.

ความคิดเห็น (0)

เข้าสู่ระบบเพื่อแสดงความคิดเห็น
โฆษณา
BrainBehindX Inc Logo
©2026; ขับเคลื่อนโดย BrainBehindX Inc