ChatGPT Course Section 15 Debugging Programming Codes

  • last month
ChatGPT is a text-based generative AI tool that can do various tasks. In this course, you will learn how to write prompts, generate content, generate codes and utilise its powerful features.

In this video lesson, we will learn about Debugging Programming Codes in ChatGPT.

You can access the entire ChatGPT Course in the following playlist:
https://dailymotion.com/rss/playlist/x8jx4a
Transcript
00:00So over here, I have a programming code right here and it doesn't run right here. It says
00:11error as you can see. So let's say I want to correct out this error. Then what I can
00:16simply do is use that GPT. So to do that, I'm going to go around and select all of
00:22the code and press say a control C right here to copy it and paste it out right here. And
00:27I'm going to go around and say debug this Python code right here just like this. So
00:35if I were to go around and do that, then what happens is that it says there's a typo error
00:39right here just like this. It detected out the errors as you can see and retype out all
00:45of the codes right here. So this is a program that adds in three numbers or takes in three
00:51numbers and asks the user what to do and then will provide the result on the basis of it.
00:57So I got the recorrected code right here and pasted it right here. And if I were to
01:02go around, hit the run button. Now you can see that the programming code has been corrected
01:06right here just like this. So let's go around and say add and you can see that the program
01:12is running and working. So that is how you can debug programming codes using chat GPT.
01:18So if you found this video useful, so be sure to comment on what you think about it. Be
01:23sure to hit the like button and don't forget to share this out with your friends and family.
01:28And for more comments like these, please do follow simple tutorials.

Recommended