Hello guys and welcome back to another class of our course the complete introduction to Python.
So in today's class we are going to learn how programming works.
Well once again my goal here is really to just present to the basics and well how what is the logic
behind that programming.
And we will play by creating some phrases that will.
Well we'll write them down and we'll change orders.
So I'll explain you how it's how some aspects are important.
So basically how all this works well how Python works as I explain the first part right here is where
you write down your code.
So let's say for example I write down print
and in this case I still write down my basic program which is the world and I run this program.
All right.
So as I explained in the course before the first part right here is where I will write down my code.
And here is the answer to my code.
So let's say for example here.
Well my my goal here when I'm writing when I'm writing down something is simply to send the computer
instruction to what exactly the computer will have to.
So for example right here I'm sending the instruction to the computer to print and the computer will
simply generate me that hello world right there.
So if I asked for example the computer to make an addition or subtraction and multiplication or division.
Well the computer will do this right here and it will generate me the answer right there.
So the more complex the well the computer will answer to those tests basic.
They look like this and the more complex the tasks are the more time it is going to take the computer
to complete them.
But at the end the computer is simply completing the tasks that we ask him to do.
So this is the conceptual.
This is the huge concept of programming.
It's simply giving the computer tasks to complete.
So let's say for example I want to insert complex program a problem so I will create a program that
will answer to dos that that will give a solution to this problem.
And then the computer will simply give me the answer.
For example I am creating a program that will do accounting.
After that I will.
The computer will ask me to enter my.
Let's say for example once again will ask me to enter my variable so the numbers that I want that count.
So in the case let's say for example I want to do accounting for a business I will enter all the accounting
numbers of this business and the computer will generate me the answer.
So the answer that I'm looking for let's say is the income of this business or the value of this business
or whatever answer I'm looking for.
So as I explain the goal here is really to well is really to write down instructions to the computer.
All right.
So how we are going to understand how all this works.
So it's very simple.
We will create some phrases and you'll see why.
There are some aspects that are important.
The first aspect that is there is very important is the order in which you write down your functions.
Let's say for example you take your first function which is hello and instead of writing down HELLO
YOU WRITE DOWN HELLO MY NAME
IS
SOMEONE
All right.
So right now what do we have.
We have four different words.
So if we run this up once again.
Hello my name is someone is the answer to this quote.
So once again I created my app so as you can see my app is very simple.
What it does is simply generates those words right now.
The order that I write down my code is very very important.
This could be for simple codes as right here for example where I'm just generating words and I'm asking
Python to generate me words or for more advanced codes where I need to do some advanced calculations
or enter variables or will identify variables or anything more complicated.
So as I explain the order is important why.
Because let's say for example we take our first line of code and instead of putting it at the end we'd
put it at the beginning
and delete our last line of code as you can see the answer will not be the same because instead of having
Hello my name is someone.
Well right now my answer is someone.
Hello my name is which doesn't make sense at all.
So as you can see if my order changes this means the order of the instructions that I'm giving to the
computer will change as well.
So at the end I will not have the same answer.
If I give you guys a more life life life example let's say for example you are doing it pizza.
You can beg the pizza before cooking the pizza.
So this is the exact same thing for four let's say our bite on exercise right now.
If let's say my last.
If someone is in this case cooking the pizza I can't put cooking the pizza at the beginning once again
that's just an example.
So this is why the order is very very important.
So that's my goal for this course as I explained that let me summarize the goal with those.
That's this basic app was just to show you that first of all the order is important.
Secondly how Python works is this well how Python works is simply giving orders to a computer and the
computer gives you the answer.
So you write down your orders right here and you receive your answer down here.
So this is really really really the basics basic basics of programming not only for python but for bruv
for programming as well in any language.
The only thing that you guys do you simply sent or there is that a computer and the computer will insert
those orders with an answer.
So in this case my answer is Hello my name is someone.
So that's it for this class guys.
And see in our next class.