new_stocks = {symbol: price * 1.02 for (symbol, price) in stocks.items()}

Code language: Python (python)