Explore Courses Blog Tutorials Interview Questions
0 votes
in Python by (47.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 (106k 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:-

Wanna become an Expert in python? Come & join our Python Certification course

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)

Browse Categories