JustCaptain kod-buduschego
fba454ae81d4af46876e583f12baa21a67ab14e8
Перейти к файлу
Код
kod-buduschego Python 2025-20262.5. Цикл Whilepracticeschatgpt2task_5.py
anc update c70a58f 8 октября 2026 г.
task_5.py
prices: list[int | float] = [1000, 2500, 3800, 4200]

index: int = 0
while index != len(prices):
    prices[index] = prices[index] * 1.10 # prices[0] = prices[0] * 1.10 => 10000 * 1.10
    index += 1

print(prices)