3-part task of python language