⚖ Compare news

Put up to three stories side by side. Pick IDs from any article URL: /compare?id=123&id=456

Почему дорожают авиабилеты: считаем защиту тарифных классов на Python

habrahabr.ru ·Russian Federation · world
Words
60
Chars
374
AI summary
Yes
Full story

A ticket for the same flight that cost 6,000 rubles yesterday was priced at 10,000 rubles today, even though dozens of seats on the plane were still free. The article asks why airlines close off the cheap fare when seats remain unsold. Using one flight as an example, it examines where booking limits come from, calculates them, and then translates the calculation into Python.

Вчера билет стоил 6 тысяч рублей, а сегодня на тот же рейс самый дешёвый вариант есть только за 10 тысяч. При этом в самолёте ещё десятки свободных мест. Зачем авиакомпании закрывать дешёвый тариф, если кресла пока не проданы? В этой статье разберём на примере одного рейсе, откуда появляются лимиты бронирования, рассчитаем их, а затем переведём это на Python. Читать далее

Open article