how to write pythonic code

welcome to shbcf.ru