A lot of people are astonished by the code-assembling capabilities of ChatGPT, despite it not having the explicit ability to read/output code. However, this is purely an artificial limitation put into place by OpenAI.