I have access to ChatGPT Code Interpreter mode, where it can both write Python and then execute it.
I use that to write code all the time, because ChatGPT can write the code, run it, get an error, then re-write the code to address the error.
Here are two recent transcripts whereI used it in this way:
- https://chat.openai.com/share/b062955d-3601-4051-b6d9-80cef9...
- https://chat.openai.com/share/b9873d04-5978-489f-8c6b-4b948d...