In reply to Brian.

Ali hk is correct: ChatGPT was not explicitly trained to code. It’s a language model which ingested a huge amount of text, some of which happens to be language in the form of code. This means it’s not coding (at least not in the sense of actively making decisions about how a piece of code is being written) and is creating its best approximation instead. That some of the code it outputs happens to work is a happy accident, nothing more. The best summation I’ve seen so far of what ChatGPT is: “a plausible idiot”.

There’s already a lot of commentary at this point that ChatGPT lies a lot, so it doesn’t really matter if it told you it was trained on Python, Javascript and C. It doesn’t explicitly support any coding languages.