1 00:00:02,320 --> 00:00:02,800 Hi guys. 2 00:00:02,800 --> 00:00:03,840 Welcome to this session. 3 00:00:03,840 --> 00:00:07,600 So in this session we're going to talk about another scenario of debugging which can happen. 4 00:00:07,640 --> 00:00:10,800 Let's say there is a particular problem with which you're trying to solve here. 5 00:00:10,800 --> 00:00:13,400 And you've created a code for that particular problem. 6 00:00:13,400 --> 00:00:15,840 But it's not running properly let's say on Python. 7 00:00:15,840 --> 00:00:18,560 So how we can use ChatGPT in such a case. 8 00:00:18,880 --> 00:00:21,280 So let's start with the question first. 9 00:00:21,480 --> 00:00:25,360 So which we can give to ChatGPT to understand the question itself. 10 00:00:25,680 --> 00:00:30,560 So let's say this is a specific question which you can give. 11 00:00:45,880 --> 00:00:53,360 And then what you can do is you can go ahead and give your response out here for it. 12 00:01:02,600 --> 00:01:08,160 However, let's make some intentional mistakes over here, which we can do. 13 00:01:08,160 --> 00:01:13,240 So let's say we are changing the specifically few parts of it. 14 00:01:21,760 --> 00:01:24,360 So let's say we are removing the ID part. 15 00:01:28,660 --> 00:01:29,300 And. 16 00:01:34,100 --> 00:01:35,180 Putting it out here. 17 00:01:35,380 --> 00:01:35,860 Okay. 18 00:01:35,980 --> 00:01:39,700 And then we are removing this particular part as well. 19 00:01:40,980 --> 00:01:41,700 The segment. 20 00:01:43,700 --> 00:01:45,820 And now you can give your response. 21 00:01:49,580 --> 00:01:52,100 For ChatGPT to proofread it. 22 00:01:59,180 --> 00:02:01,780 And here we can ask the specific problem with it. 23 00:02:11,340 --> 00:02:17,460 So you can see in this particular case it has gone ahead and corrected the code with fixes as well specifically. 24 00:02:17,500 --> 00:02:17,940 Okay. 25 00:02:19,660 --> 00:02:23,260 The book ID part which we had talked about was as has been changed. 26 00:02:23,300 --> 00:02:23,500 Okay. 27 00:02:23,540 --> 00:02:28,060 Now properly check if the book has, uh, was actually borrowed before returning it. 28 00:02:28,260 --> 00:02:28,780 Okay. 29 00:02:28,820 --> 00:02:32,100 And hence message consistency has been done as well. 30 00:02:32,340 --> 00:02:38,020 So now you can see it has gone ahead and identified those specific areas available. 31 00:02:38,060 --> 00:02:40,380 Again this was also something which we had changed. 32 00:02:40,380 --> 00:02:42,260 So it has identified that as well. 33 00:02:42,660 --> 00:02:47,460 So this can be another way of debugging any type of code which you're dealing with, which you're working 34 00:02:47,460 --> 00:02:47,860 on. 35 00:02:48,180 --> 00:02:54,100 And you can give it to ChatGPT to proofread it and fix it for you, which you can then run on the platform.