Computer Science, asked by Abubakar6798, 1 year ago

What do the =+ and += do in Python?

Answers

Answered by omegads04
0

Assignment operators are used in Python to assign values to variables. a = 5 is a simple assignment operator that assigns the value 5 on the right to the variable a on the left. There are various compound operators in Python like a += 5 that adds to the variable and later assigns the same.

Similar questions