That is true. Khanmigo, to which you have devoted some attention, does indeed relate to how AI can aid in asking students questions within an educational setting. The topic of your original post is different, however, in that it is about using AI to generate or enhance answers rather than for it to ask questions for the learner to answer. To become fluent in programming, the learner needs to generate the answers.
The issue of whether or not to allow posting of responses generated by LLMs within this forum is currently under discussion. A number of participants in the discussion have expressed their concerns about LLMs, including hazards connected with using it to generate code. Obviously, some of these concerns can be applied to the discussion here. Please see Community policy on AI-generated answers, and consider what implications some of the commentary there has regarding your current task.