ChatGPT is a useful tool for coding applications.

ChatGPT is a useful tool for coding applications. 

“Can you write a Python program that reads a CSV file containing student data, calculates the average grade for each student, and writes the results to a new CSV file?”

Here is the code produced by ChatGPT.