0 votes
1 view
in Python by (42.6k 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 (95.7k 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !