ChatGPT is quite good at generating example code/programs on the spot as well. It's not hard to imagine this as a timesaver for programming homeworks, prototyping, or even a way to cheat in online coding interviews.