DEV Community

DDSRY
DDSRY

Posted on • Updated on

What does += means in Python?

What does += means in Python Programming Language?

  • The code x + = 1 is the same as doing x = x +1 but involves less typing.

  • You can call this the "increment by" operator.

  • The same goes for - = and many other expressions.

Read more...

Top comments (1)

Collapse
 
sloan profile image
Sloan the DEV Moderator

Hi there, we encourage authors to share their entire posts here on DEV, rather than mostly pointing to an external link. Doing so helps ensure that readers don’t have to jump around to too many different pages, and it helps focus the conversation right here in the comments section.

If you choose to do so, you also have the option to add a canonical URL directly to your post.