Python: how to change (last) element of tuple?,"b = a[:-1] + (a[-1] * 2,)"