I frequently give my students challenges such as "this code doesn't quite work, fix it and explain what was wrong with it". Now I can use ChatGPT to have my students ask it to generate the code and evaluate it.