0 votes
1 view
in Python by (47.8k points)

I need to know what += does in python. It's that simple. I also would appreciate links to definitions of other shorthand tools in python.

1 Answer

0 votes
by (107k points)

In, Python += adds another value with the variable's value and assigns the new value to the variable. You can see the example below:-

>>> x = 3 

>>> x += 2 

>>> print x 


To know more about this you can have a look at the following video tutorial:-

Related questions

0 votes
1 answer
0 votes
2 answers
0 votes
1 answer
asked Jul 19, 2019 in R Programming by Ajinkya757 (5.3k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !