Say what you have
a, b, c = [1, 2, 3]
after determination:
def add1(x):
return x+1
You can do:
print(map(f,[a, b, c]))
which means the following line will give you what you want:
a, b, c = map(add1,[a, b, c])
which is a little easier to do than:
a, b, c = a+1, b+1, c+1
if you have a large array. In addition, you maintain readability and get your “one liner”.