+= with multiple variables in python

increment, python

Solution

If you want to write a single line, you can try multiple assignment, but without the `+=` syntax:

a, b, c = a+1, b+1, c+1

Or for a more pythonic solution, avoid the one-liner:

a += 1
b += 1
c += 1

Problem

I'm trying to increment multiple variables at the same time and stick it into one line. What would be the most pythonic way to do this if there is a way?

Original source