• last month
Microsoft Copilot 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 the web version of Microsoft Copilot.

In this video lesson, we will learn about Converting Programming Codes in Microsoft Copilot.

You can access the entire Microsoft Copilot Course in the following playlist:
https://www.dailymotion.com/playlist/x8rnke
Transcript
00:00So now let's see how we can go around and convert programming codes using Copilot.
00:10So over here you can see that I have a Python programming code right here which actually
00:15takes in three numbers and then asks the user to choose the mathematical operation and then
00:23displays the result.
00:24So let me just go around and copy out this Python code right here just like this.
00:29And let's say I want it to be in a JavaScript code right here.
00:33In that case I can go around onto Copilot and then go around and paste out this code
00:38right here.
00:39And now I can simply go around and say convert and recompile this Python programming code
00:55into JavaScript code right here.
01:00So now once I go ahead and do that, it'll take that particular programming code right
01:05here and rewrites everything as JavaScript as you can see right here just like this.
01:11So you can see that this is what you have.
01:13And then now what you can simply do is I can go around and copy out this particular code
01:17right here, go to a JavaScript compiler and paste this out and then hit the run button
01:23right here.
01:24And now you can see that it is running as a JavaScript program right here.
01:27I can go around and then enter out three numbers.
01:30So let's just go around and say multiply right here just like this, press enter.
01:35And it says the result is this.
01:36And do you want to perform another calculation?
01:38If I were to press yes right here just like this, I can go around and enter out other
01:43numbers and you can go around and say add.
01:46And I'm simply going to go around and say no.
01:48And it says thank you for using the program.
01:50So the same program right here which was written in one type of programming language
01:55can be converted into another type of programming language just by prompting out in Microsoft
02:01Copilot as you can see right there.
02:03So I hope you found this video useful.
02:06So be sure to comment on what you think about it.
02:08Be sure to hit the like button and don't forget to share this out with your friends and family.
02:13And for more contents like these, do follow Simple Tutorials.

Recommended