• 2 months ago
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 Programming Codes Generation in Microsoft Copilot.

You can access the entire Microsoft Copilot Course in the following playlist:
https://www.dailymotion.com/playlist/x8rnke
Transcript
00:00So what you can also do is easily generate programming codes by using
00:09Microsoft Copilot. Let's say for example, I'm going to go around and let's say for
00:15example, say generate a program that takes in three numbers as input from
00:28input from user and then gives the user an option to add, subtract, multiply or
00:41divide the numbers and carries out the calculation process as user chooses.
00:53When the result ends, it asks the user if the user wants to do another calculation and
01:08if the user says yes, then the program takes three inputs as numbers again and
01:22asks which calculation to do. Otherwise, if the user chooses to not do any
01:33calculation, then the program says thank you for using the program and the program
01:44ends just like this. So let's just go around and type in this right the regular
01:49English right here and then it gives a Python code right here. So I haven't
01:53actually said which programming language to use, but by default it's my utilizing
01:58Python as you can see right here. But if you want to go around and utilize a
02:02specific programming code, then you can simply specify the programming language
02:06as well. Or if you don't get it in Python or some other language, then you can
02:10simply go around and say generate in Python. So I'm simply going to go ahead
02:15and copy out the code right here and then go around over here onto the online
02:19compiler. And let me just go ahead and paste and then hit the run button right
02:23here. Just like this. So now it says enter number one. So I'm going to say
02:272334 and I'm going to say 2334 choose then operation add and subtract,
02:33multiply or divide. So let's just go around and say multiply right here just
02:36like this. And it says the result is 26588.0. So it says do you want to
02:44perform another calculation? So I'm going to go around and let's say, for example,
02:49say yes right here just like this. And then what happens is that it says enter
02:53number one again. So I'm going to go around and type in three numbers right
02:56here and I'm going to say add right here just like this. And it gives me the
03:00results. So if I were to go around and say no, it says thank you for using the
03:04program and the program exited right here. So that is how you can go ahead and
03:08generate out programming codes using Microsoft Copilot as well. So we found
03:14this video useful. So be sure to comment on what you think about it. Be sure to
03:18hit the like button and don't forget to share this out with your friends and
03:22family. And for more contents like these, do follow Simple Tutorials.

Recommended