Hi guys.
Welcome to this session.
So in this session we're going to talk about another scenario of debugging which can happen.
Let's say there is a particular problem with which you're trying to solve here.
And you've created a code for that particular problem.
But it's not running properly let's say on Python.
So how we can use ChatGPT in such a case.
So let's start with the question first.
So which we can give to ChatGPT to understand the question itself.
So let's say this is a specific question which you can give.
And then what you can do is you can go ahead and give your response out here for it.
However, let's make some intentional mistakes over here, which we can do.
So let's say we are changing the specifically few parts of it.
So let's say we are removing the ID part.
And.
Putting it out here.
Okay.
And then we are removing this particular part as well.
The segment.
And now you can give your response.
For ChatGPT to proofread it.
And here we can ask the specific problem with it.
So you can see in this particular case it has gone ahead and corrected the code with fixes as well specifically.
Okay.
The book ID part which we had talked about was as has been changed.
Okay.
Now properly check if the book has, uh, was actually borrowed before returning it.
Okay.
And hence message consistency has been done as well.
So now you can see it has gone ahead and identified those specific areas available.
Again this was also something which we had changed.
So it has identified that as well.
So this can be another way of debugging any type of code which you're dealing with, which you're working
on.
And you can give it to ChatGPT to proofread it and fix it for you, which you can then run on the platform.