I know that this is a rather silly question and there are similar ones already answered, but they don\'t quite fit, so... How can I perform the same operation on multiple variab
You can use the following generator expression:
a, b, c = 3, 4, 5 a, b, c = (2 * i for i in (a, b, c)) print(a, b, c) # 6 8 10