codes answers for PythonTip