Write the equivalent expression in python programming language for the following. X+=6 and X-=9
Pls answer fast help me .
Answers
Answered by
0
Answer:
x+=6 is same as x=x+6
x-=9 is same as x=x-9
Explanation:
x+=6 increasing the value of x by 6 and
x-=9 decreases the value of x by 9
As for example:
x=15
print('x=',x) # prints x=15
x+= 6
print('x=',x) #prints x= 21
x-=9
print('x=',x) #prints x= 12
Similar questions