# [Python 2], 50 bytes <!-- language-all: lang-python --> lambda x,y:sum([x,-x][y<0] for i in range(abs(y))) [Try it online!][TIO-j5eolpoq] [Python 2]: https://docs.python.org/2/ [TIO-j5eolpoq]: https://tio.run/##K6gsycjPM/qfZhvzPycxNyklUaFCp9KquDRXI7pCR7ciNrrSxiBWIS2/SCFTITNPoSgxLz1VIzGpWKNSU1Pzf0FRZl6JQpqGmY6uueZ/AA "Python 2 – Try It Online"