Как вернуть несколько возвращаемых значений в функции Python https://ru.from-locals.com/python-function-return-multiple-values/