ChatGPT isnt perfect as of now. The code it write have a high probability of containing bugs. It (ChatGPT)even admits to this shortcoming. Itll take a long long many more years of iteration to get to where we dont need to teach kids