Hacker News new | ask | show | jobs
by jameshart 1499 days ago
One last result:

With this prompt:

    Here is some python code:

    def getLength(s): 
         return a.length

    What is the bug in this code?
GPT-3 says:

    The function is called getLength but it returns the length of the string a, not the string s.

That's it, pack it up, we're done here.
1 comments

Absolutely fascinating stuff, thanks for trying it out! I just wish we had some way of really understanding what's going on under the hood...