1 00:00:02,280 --> 00:00:02,760 Hi guys. 2 00:00:02,760 --> 00:00:03,640 Welcome to this session. 3 00:00:03,640 --> 00:00:08,800 So in this session we wanted to see how you can also use ChatGPT for code documentation. 4 00:00:08,800 --> 00:00:14,320 So once you have the code some kind of commentary documentation of the code really helps to understand 5 00:00:14,320 --> 00:00:15,560 what's going on in it. 6 00:00:15,760 --> 00:00:19,120 So let's see how you can make use of ChatGPT for that. 7 00:00:19,120 --> 00:00:24,560 So we can ask ChatGPT to explain what is happening in the code and document it. 8 00:00:43,440 --> 00:00:44,960 So you can paste the code over here. 9 00:00:46,240 --> 00:00:46,800 So now. 10 00:00:50,600 --> 00:00:55,280 It's going to go through all the line items and understand what's being said over here. 11 00:00:55,440 --> 00:00:59,640 And then it is going to go add an explanation of the whole thing for us. 12 00:01:02,010 --> 00:01:05,810 So based on which we can get a full documentation of the code as well. 13 00:01:05,810 --> 00:01:11,090 So this is really useful because this gives us an understanding of what the code really does, the background 14 00:01:11,090 --> 00:01:12,130 of it okay. 15 00:01:12,170 --> 00:01:14,450 And all that can be done over here. 16 00:01:14,450 --> 00:01:15,210 So let's see. 17 00:01:18,330 --> 00:01:22,770 So here itself it has gone ahead for every specific line item. 18 00:01:22,770 --> 00:01:25,770 It has given an explanation of what it really does. 19 00:01:25,770 --> 00:01:31,130 Initiates an empty dictionary to store books dictionary keys, the book ID and the value is the dictionary 20 00:01:31,130 --> 00:01:33,970 containing book details and so on and so forth. 21 00:01:33,970 --> 00:01:36,890 It has given the whole explanation over here. 22 00:01:42,090 --> 00:01:46,410 So this way we can get a documentation also done of the whole code. 23 00:01:46,450 --> 00:01:51,010 Any code which you are working with, let's say is a another code, new code which you have come across 24 00:01:51,010 --> 00:01:57,690 that also you can give to ChatGPT to analyze it and then give us an understanding of what the code actually 25 00:01:57,690 --> 00:02:01,890 does and the explanation, the documentation which you can get out of it.