Как писать условные ветви с помощью операторов if в Python https://ru.from-locals.com/python-if-elif-else/