Solving of codeabbey tasks on Python