132k views
2 votes
D the statement A+=10 means the value of A is previous value plus 10.

2 Answers

2 votes

Answer:

Yes, that's correct. The += operator is a compound assignment operator that adds the right operand to the left operand and assigns the result to the left operand. In the case of the statement A += 10, the value of A is increased by 10. This is equivalent to writing A = A + 10.

Step-by-step explanation:

For example:

A = 5

A += 10

print(A) # Output: 15

This can also be written as:

A = 5

A = A + 10

print(A) # Output: 15

User Jus
by
7.8k points
1 vote

Answer: Yes

Step-by-step explanation:

A += 10 is the same as A = A + 10

Hence new value of A is 10 greater than the original value of A.

User Dale Emery
by
7.2k points