ChatGPT Course Section 16 Converting 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 Converting 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 you can see that I have this particular programming code right here that
00:10actually goes around and takes in three numbers and then adds them out and tells the user
00:17to, let's say for example, perform a function right here, just like this.
00:22So let's say I want the same thing but in C programming right here.
00:26So, now what you can do with ChatGPT is you can go around and select out all of the content
00:31right here, just like this.
00:32So, I seem to have copied it, cut it, so let's just go around and copy it out right here.
00:40Then I'm going to go around onto ChatGPT right here and paste out the code.
00:44And over here I'm going to go around and say, now convert this Python programming code to
00:54C programming code right here, just like this.
00:59So if I were to go around and do that, then what happens is that this is what you have.
01:03So you can see that it converted the Python programming code right here to C programming
01:08code right here, just like this.
01:10So now, this is what you have and you can go around and copy out the code right here
01:14and then go to C compiler right here and paste out the code right here, just like this.
01:19So if I were to go around, hit the run button, then you can see that this is what you have.
01:24You can go around and try out the number right here, then it is telling me to choose
01:28an operation and this is what you have right here.
01:31So let's just go around over here and run again right here, just like this.
01:36And then there you go.
01:37So let's just go around and add it and it says the result is 72 right here.
01:42So that is how you can go around and convert programming codes inside of ChatGPT from one
01:48language to another and get the same results.
01:51So I hope you found this video useful.
01:54So be sure to comment on what you think about it.
01:57Be sure to hit the like button and don't forget to share this out with your friends and family.
02:02And for more contents like these, do follow Simple Tutorials.

Recommended