https://pyclip.ru/en/tapes/i4bW1PNC38A/optimized-way-to-handle-multiple-conditions-in-python