The paper examines the problem of using some artificial intelligence mechanisms in adaptive teaching the subject of programming, such as personalized learning paths, real-time feedback, individual curriculum, identification of learning styles, adaptive content delivery, adaptive assessment strategies and with the help of machine learning algorithms as linear regression, the effectiveness of using such mechanisms is shown