Улучшение Python кода: замените if-elif условие на словарь!
Улучшение Python кода: замените if-elif условие на словарь!
Jan 28, 2022, 1:55pm UTC
https://medium.com/nuances-of-programming/%D1%83%D0%BB%D1%83%D1%87%D1%88%D0%B5%D0%BD%D0%B8%D0%B5-python-%D0%BA%D0%BE%D0%B4%D0%B0-%D0%B7%D0%B0%D0%BC%D0%B5%D0%BD%D0%B8%D1%82%D0%B5-if-elif-%D1%83%D1%81%D0%BB%D0%BE%D0%B2%D0%B8%D0%B5-%D0%BD%D0%B0-%D1%81%D0%BB%D0%BE%D0%B2%D0%B0%D1%80%D1%8C-1fc2e949820d