2 ms·
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 sa
by jameshart 4y 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.
- bobcostas55 4y agoAbsolutely fascinating stuff, thanks for trying it out! I just wish we had some way of really understanding what's going on under the hood...